Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2859171lqp; Mon, 25 Mar 2024 11:12:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOtTbsxg7vYvCy2dr3KC0VmnbI3n9g36o7eit9TX7XrqLtyvp8SC6M1kZ2a4Euaj7Db836embM30JEXUus61HMv8cVDaxTF6IN9QXO5Q== X-Google-Smtp-Source: AGHT+IFwzVNQCyNLOpWSwhmBhcvMGGPqW6krAJG/6+lzs4lrnttdmPEPryhqZRgXpXSxNdP1tVzP X-Received: by 2002:a05:620a:560b:b0:788:7160:931f with SMTP id vu11-20020a05620a560b00b007887160931fmr8801262qkn.30.1711390369154; Mon, 25 Mar 2024 11:12:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711390369; cv=pass; d=google.com; s=arc-20160816; b=zQfli0sg5GVHF9iogNOjF8aVmJHpyNJpPP1qSQtV4VUq6f2i/JgWQrqMtIgMiYf7v1 ZpbGmeUGC7+3D35YahMUz2K53uMVBNx30b3RG+S5uWXsHzyyLhCOwNS6Oe/YtM/uEAsC AfsBs5QLXplXwM26M9L/te1C/LtyYJLJB/Aer4eeh6EFS0eKMopLUnv4XwOZopbzOlEY hbXQYm6w+oXxPJSps/MR6lTI4gNN/n8+kXTHHuEzWmvenHlICzC8bpZpDTd1ziDHWtLd hBpUvdJMuq7MLdMFuL8qN5lghPolMLcarguKTEznFLVbV1E/7HE1lgsM6Sbrv7+lU0uB pWhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=Xmzb+eW330TUASaWKG2wSZdy0QxEcVUyM2WdEc5Izc0=; fh=Sm6HIxIxhhNrQeHVc4fUyosDYXC49kkA/QnZpjmrSF8=; b=PRq3x5D3JjPZjGcN5T37oFQFwIV4Aw5n6THX0ZcDYoX9R4lP6/Fpg/WNBMUedjzWnC fev3S6VEHmhAE+XQbIGw8HeYL9gch8V0iKnp6EZRhaw4cdmUG68dcBqfu1/2l+r9csFg 5YP+lx7kCT8CXrC21iSuV6hsz/g6O1wBm/h/q4sg382DE0F7fZ4mK+LtOxfVGUZsGKTd gBUrCRm60bW9LIDPWJ7E9vtBcmdJPj5v5YAPAgN4tsx+YEDzIhARAyZxePn8Rt+6BSHe UIA+vRRVLkAiPsllIBeodwaV45l1n3m+/g3qHoVqyhXjkg4T9lav8CPVlD84n/7CGJXd x9kA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aAK6G8El; 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-117615-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pj31-20020a05620a1d9f00b0078a101c2910si5804402qkn.569.2024.03.25.11.12.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:12:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117615-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aAK6G8El; 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-117615-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117615-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 59F731C3D458 for ; Mon, 25 Mar 2024 18:12:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DA1D134422; Mon, 25 Mar 2024 17:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="aAK6G8El"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bHIDaqqo" 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 138A51327FE for ; Mon, 25 Mar 2024 17:40:59 +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=1711388461; cv=none; b=gkm20rAAQd/j4aL2lLRcRCBQ0Im4tYHVQuf0kV7+aotgYzO1+IeWvx3g3sQPiNX/hi26kH+VWPALgsvaP4DUtVpepPMUa9rBxbd9rS85gZm/9VEJPJ/UgPYfDPueiW2HLzLkXyMbm8Ka4CmTMOqjp/B1N6QhEU2aIJQ9aBhQYBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711388461; c=relaxed/simple; bh=pHokYGdGQkEJ9+IjLb+73a4lmnWUxZDuSDnAyDRJASg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=DK/TC3BL8z6agj6V3mCrypCF2TkpG+nnvI4w+Uzx2UqIfN+0nW2bbaWX7ZjXRr4bvyCnIjSs2A6aKZAAiQ2s149/8wEASIW3GlEEo3AlcPuYnk33u6QNV1S5FVvEINpJp14Vqz2jVnvGuWYoPJZU2UXQIqSb+pMQgW6eZox2Gys= 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=aAK6G8El; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bHIDaqqo; 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 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1711388458; 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=Xmzb+eW330TUASaWKG2wSZdy0QxEcVUyM2WdEc5Izc0=; b=aAK6G8ElBaGz3aXo/UA9razEyWcBZRcJ+5cVa+60XUd4Jkb1/SO8MesWRi1u3xmAl309ZI 0NBJE+ltFsNrs3dMkvkm4APaoaYtVLekPEE2+/7yjJ4/E6i0MVaVWy3EJt0SgseJ8Py0j1 CXWms2Gs0CN9cZDUt9yFxlm1OEYGtL3z/wM//Ddld5tJ8jnYhGw4ibN3yDBybuNaFwPe3/ OoigBJqrDf4ALjtUn/ASohHwFI2GMEcO8bh3w6Sh0/dUcUqHTKfn0BYgNQ7lu6WNHyyOFU uYzI3otrMBlSbncKt8Vivbm9WREfdZqGzhBHTd0USBELhvvLAJ9F9m/RFgijpg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1711388458; 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=Xmzb+eW330TUASaWKG2wSZdy0QxEcVUyM2WdEc5Izc0=; b=bHIDaqqoMRjarqEGazNFrdIwC2Fqjk3r89j5otyheYgKoAN2/orw+lrQcUqZ92PNtDl84X biOkOk8IDzh/E3DA== To: "Peng Fan (OSS)" , Will Deacon , Robin Murphy , Joerg Roedel , Marc Zyngier Cc: Bixuan Cui , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH 2/3] genirq/msi: cache the last msi msg In-Reply-To: <20240324-smmu-v3-v1-2-11bc96e156a5@nxp.com> References: <20240324-smmu-v3-v1-0-11bc96e156a5@nxp.com> <20240324-smmu-v3-v1-2-11bc96e156a5@nxp.com> Date: Mon, 25 Mar 2024 18:40:58 +0100 Message-ID: <878r26fbv9.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Sun, Mar 24 2024 at 20:28, Peng Fan (OSS) wrote: > From: Peng Fan > > Cache the last msi msg which will be used for ARM SMMU V3 resume > > Signed-off-by: Peng Fan > --- > kernel/irq/msi.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c > index f90952ebc494..9d7e0a675089 100644 > --- a/kernel/irq/msi.c > +++ b/kernel/irq/msi.c > @@ -617,6 +617,9 @@ static unsigned int msi_domain_get_hwsize(struct device *dev, unsigned int domid > static inline void irq_chip_write_msi_msg(struct irq_data *data, > struct msi_msg *msg) > { > + struct msi_desc *desc = irq_data_get_msi_desc(data); > + > + desc->msg = *msg; > data->chip->irq_write_msi_msg(data, msg); > } This should remove the very same line in the PCI/MSI code, no? Thanks, tglx