Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2857035lqp; Mon, 25 Mar 2024 11:09:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjdzhlWV9XBgcPjh99dofF+amPJD1p6JSsO2PdRspwLrZ9xC1VLnU7cU16pWpIkfStYcnENMbWlifmZBZ3esmITqLzkgQDWZNVQTfObQ== X-Google-Smtp-Source: AGHT+IGS+Z3cLecFdCtiLKOh3FkU9sIWSr71LL2BvV01Yt4mPp5vQpIfoeVAqpQTl1AlEJHs+qYf X-Received: by 2002:a05:6830:124e:b0:6e6:8b5a:814d with SMTP id s14-20020a056830124e00b006e68b5a814dmr9612566otp.13.1711390151178; Mon, 25 Mar 2024 11:09:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711390151; cv=pass; d=google.com; s=arc-20160816; b=YuX5o5eSpDPrDpy7a+1aGhdu4T9PX9FvicW+fhOtOiIwCxK/hjAXFwpaaCx5s95GZ7 0R2K+qVUiZ2hbexT0SR3t0Hpea3pTqrE2Y4cscD/SHDnmdz7WIAWE9HF7kL7ji9EUyq1 nGuVza1s745n670Mr1mf9gWJIHuV23kz+d2ZJ9dQxY2/sBm8T0YPTZLFMic95ic9a0fx pzCeDqFztmauNb/wahc54RIKpxCtmV2/p7isVbI1WQrC2Pr2+z/whE3pBPCnVop3Iuc5 do6iSz1kE8RYa3TXLjVG/m0gzNqjXttsn3x5/Tij4EQjA8cbf+O3/x69lFt07zT7Dos1 Xuww== 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=DK75XUtlMLk9/6ARSoFxcVcx+16IzV8AtSC+x6vyvg0=; fh=YvLKeC7p/o7uLVg/CoCeqg0SDP0I/3g1z56bqx6578E=; b=W0SfguNLVlFWEv0L0PZX8ZFPV97KVd2niUDGWchJF8ol8iMPGt3yPli2G0N2HZYTvZ OXSX6VfAA8ciqzRYl1IOuKxozYmIp9yqHZM8IAAI6sA1+jCjZ3HPdVad6qNOuj3oTWnQ tc1CaGhgdKfsssqBqO2YTdWlHTy3DBiGSTZEmjD2JJXKninxlY9P/2elLeDp7Jy2VRat /1pY4yZVs1kJOmo5ySH4uqcI2FW0SN2D3pT6JA3ndK0b1gwdO4cXS05BULBKCx2ewylb //uvdJZlgiT2MLhNFMBj3YyO7FD+/0rtynLZDpNpk5qVqjC4hCd958vhKcbWoRWYFeaT NedA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=D6f93+Zw; 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-117603-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117603-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 v20-20020a05620a0f1400b0078a100072d2si6159981qkl.3.2024.03.25.11.09.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117603-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=D6f93+Zw; 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-117603-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117603-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 061E01C2C1DC for ; Mon, 25 Mar 2024 18:08:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B86273518; Mon, 25 Mar 2024 17:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="D6f93+Zw"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ADqaJtST" 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 5A730487AE for ; Mon, 25 Mar 2024 17:29:05 +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=1711387746; cv=none; b=G0UDWbCXsJhsst/Rg2sG+mYQUwlhO1EiFLQvt129iHpaIPkthtJrjjWyiQfK0Uyocg18prpt5lS8/Qc8AkTHLeFwKWAMxPH/MVjQx4AT6MdpYvwEz4iVCWdFEgzbgMLNtF0SX+/mxNhVgIMAOvc0lbksvRnyL1MH4Hm5TMo9VxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711387746; c=relaxed/simple; bh=AJt1U9vTruj17U/R5Stf0nTDii3e+Z/CWmJMiKxifSc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Vle6ymo39zSlbLbovgEXUR2HF8Alxh3M6GiHB++UB+81JF4cLB+Xccm79vWAZNiSWKyPAeavXLdPtU6QJBWqp1KN5IzTPfgGRywT2MMHx3xrVO2bVkvWV3by6c7LinwiVBa+SXqrC8juLfajooL0lEHzQ6eFdK9MMRG+n9pO6Kc= 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=D6f93+Zw; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ADqaJtST; 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=1711387743; 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=DK75XUtlMLk9/6ARSoFxcVcx+16IzV8AtSC+x6vyvg0=; b=D6f93+ZwVXOucjhz90HFPRG8UrmlmLHw5luAhexA228uzsatRdCZEo6Cf0rgIb3vIf4Yv5 WBn4yUi8Vs53n1nP2RcYibCv+Ry9Lz56+lIzphC8B1gp+QICHV0oXc+P0gpn4PfZM8ZL/j Opsz07yxMw4nNK1+fGJa+XNfvb3C2s6kSoCK329vxCJBdVBPAesaYWUJleFB6NAAbWwviI QdqOt5MXbqv3MplJ5ZaQ5hw4BdX6wbibi4eWU9oAXMxw/T8jiN2VFIIjeHgA0g5e0NNuaU 5sN2nDBcIOa/9Rk60SYId7qHKjaJEMY4wtq1mtTlfo+qKqiYTxNPLAXNdy/3aw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1711387743; 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=DK75XUtlMLk9/6ARSoFxcVcx+16IzV8AtSC+x6vyvg0=; b=ADqaJtSTgua0QpmlQ9S4WNkb+UhTfDqmg9pUgccPc2/fxJseO/HvWkPVtOMfNJ7AGF035A VdvNBAQgh8+vNcCQ== To: Jason Gunthorpe , "Peng Fan (OSS)" Cc: Will Deacon , Robin Murphy , Joerg Roedel , Marc Zyngier , Bixuan Cui , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH 3/3] iommu/arm-smmu-v3: support suspend/resume In-Reply-To: <20240325134848.GA8419@ziepe.ca> References: <20240324-smmu-v3-v1-0-11bc96e156a5@nxp.com> <20240324-smmu-v3-v1-3-11bc96e156a5@nxp.com> <20240325134848.GA8419@ziepe.ca> Date: Mon, 25 Mar 2024 18:29:03 +0100 Message-ID: <87bk72fcf4.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 Mon, Mar 25 2024 at 10:48, Jason Gunthorpe wrote: > On Sun, Mar 24, 2024 at 08:29:00PM +0800, Peng Fan (OSS) wrote: >> +static void arm_smmu_resume_unique_irqs(struct arm_smmu_device *smmu) >> +{ >> + struct device *dev = smmu->dev; >> + struct msi_desc *desc; >> + struct msi_msg msg; >> + >> + if (!dev->msi.domain) >> + return; >> + >> + desc = irq_get_msi_desc(smmu->evtq.q.irq); >> + if (desc) { >> + get_cached_msi_msg(smmu->evtq.q.irq, &msg); >> + arm_smmu_write_msi_msg(desc, &msg); >> + } >> + >> + desc = irq_get_msi_desc(smmu->gerr_irq); >> + if (desc) { >> + get_cached_msi_msg(smmu->gerr_irq, &msg); >> + arm_smmu_write_msi_msg(desc, &msg); >> + } >> + >> + if (smmu->features & ARM_SMMU_FEAT_PRI) { >> + desc = irq_get_msi_desc(smmu->priq.q.irq); >> + if (desc) { >> + get_cached_msi_msg(smmu->priq.q.irq, &msg); >> + arm_smmu_write_msi_msg(desc, &msg); >> + } >> + } >> +} > > I wonder if this should be done instead by converting the driver away > from platform MSI to the new MSI mechanism? There is work in progress for that. Should come around in the next weeks.