Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1026808rdb; Fri, 16 Feb 2024 03:09:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUrRXQC+re7KoFcE4u8GKfDN4WlDLucDh9HshCM2cZ/31MTwgQZ32mVSOGEWtWVJKLUIOY8Qy36+zX2la58o0R0K+mwJ8Uu41lsgtx0vg== X-Google-Smtp-Source: AGHT+IHPK3O/Zi+KtOPdRrYib1RPwZeSltdzKEuublhBjfxrt91g4xtt87ulYfIBDtRVvuUc2Bay X-Received: by 2002:a05:6e02:1d18:b0:365:1529:937e with SMTP id i24-20020a056e021d1800b003651529937emr40782ila.8.1708081774419; Fri, 16 Feb 2024 03:09:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708081774; cv=pass; d=google.com; s=arc-20160816; b=O0IHRpiY+B/N1MCfgjNmyAigwbigaHqGmJWg2SE/89/tLzLXf8TtT9BB7BQmMCkWgG n4ZWtTSnTLb5aXbWuiLrq97JNkjdzalBJXF1ecogA56nix01MGkfFrxDsYsdog/61xop 82kXGd8EBAE03HUA6lX1viltYl8P5EvgqOk0qY7XZYJ6qgGTNsV1nDSiYntwqnvUeAWA XOA+Mekv9CURQeKYX9ZeJQ89bl91DjS6wxHBA9KGNvpwAPuBbYdLsqRIFk1ytUrbKu32 K5Mg3jINR5FFxtNi2fHQumh83z3NI9f65g64SKNDQHJrnphgxSxaVbVa1uRTcRR3szCG bYJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:cc:subject:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=VoIm7bG7xdxeX1Ve84YA5mgH1w68YbeyVDn/kcEb2Ns=; fh=Wfd8NFGs4skmOBGSbN/ZLcS2AElNIjt69S3FhYieeo4=; b=RC/uN9jFWcbI0pdoXV6R+wRzEr55aadUMLCVed9ryfUGnT45uCyh+6wVRcQNIPmDPv BrTi5oyVjrTFHquU+wK/Q6m8iQ967p72gQAsJzBhvWRneQw8/qAuWof2IH3uGqaeaPQa AaUWOznMuFiv1q3tqBwsV/NNrWbI24dyjlmPcjZOCl14Omu3Rc9dSMaBwn9iEo7CX/VJ Emmb5nG0zW5oRkMdXZ7npCKHbIz7j+3GsJw9lEj0w8L0ajT+EKAiPbiAsEsMRsS+ivYd GEQceTEpK/l1T3xD94C5N3QrGqF5UipmUCy4Mwz06JObJu02L9v7q26N5uEBPwZFCwBG EbLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pu19fIin; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k23-20020a6568d7000000b005dc98dad590si2876471pgt.68.2024.02.16.03.09.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 03:09:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pu19fIin; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-68500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 21D732877A7 for ; Fri, 16 Feb 2024 11:09:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2834158AD2; Fri, 16 Feb 2024 11:09:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="pu19fIin" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 37501535DD; Fri, 16 Feb 2024 11:09:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708081764; cv=none; b=mIOrDdBt3xsLQaj31Rksv0VA1uBRpUnnR1gvlbNGVLjOE1wz2Olyykb5qoyHvzrqTyp+4JWPdGm/AP1FHJpGhthkruZu37x9PfK4njsTpnUn5+QSPuVKTvj0f3mcEmG0Pvx+SPR+LWqT8MHrw8l257LO8VpzDuOgdo7aTLfmffw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708081764; c=relaxed/simple; bh=VoIm7bG7xdxeX1Ve84YA5mgH1w68YbeyVDn/kcEb2Ns=; h=Mime-Version:Content-Type:Date:Message-Id:From:Subject:Cc:To: References:In-Reply-To; b=L1KetItU0In3bjJ9P56MH/J+Eljapb8yABLYD7ebsKJFXLfwJHKu2s4diUeum693Erq/0arlDlgN7lxBub/TpZ0dLSBpfyd3uXt0Faml8Copqbg+4b0zdXf6vK+QpdAVFbiNNgiOhdiBbtn3+fFZmlxjwCin5ytUrt9rp6cyo0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=pu19fIin; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id C1D3EFF807; Fri, 16 Feb 2024 11:09:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708081759; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VoIm7bG7xdxeX1Ve84YA5mgH1w68YbeyVDn/kcEb2Ns=; b=pu19fIindWoyvl+UGjcMcq0t+6LJjVczMtqO7ZZb4KGzFo4HYYZa89THhOrO2/5B+ftg7b YjSeimNZDgnx7EQscGzkSBZcYAS6+CezQS8UgDZiuHuaOnObzJBP20rocAZNF8IomgpHA2 Av5ymPoGLmO4ztX+HCX1kn3h9Bkg26z1b6omSa6oJlDiQafr7OX2mSBONtWifEX8frY17p yHiYMKESalbmWEcskaoL+yv2hXLk6GWqU3RsrzopcgLnCFiBa/mEPgJD5GaD1mHTQtatb7 VRK1dcwRCRGRgUVjrrMGy7jr3GNvaLoGb1imMlWSxUCstw1pmHELoBGOiNulnA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 16 Feb 2024 12:09:17 +0100 Message-Id: From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH v3 18/18] PCI: j721e: add suspend and resume support Cc: "Linus Walleij" , "Bartosz Golaszewski" , "Andy Shevchenko" , "Tony Lindgren" , "Haojian Zhuang" , "Vignesh R" , "Aaro Koskinen" , "Janusz Krzysztofik" , "Andi Shyti" , "Peter Rosin" , "Vinod Koul" , "Kishon Vijay Abraham I" , "Philipp Zabel" , "Lorenzo Pieralisi" , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , "Rob Herring" , "Bjorn Helgaas" , , , , , , , , , , To: "Siddharth Vadapalli" , "Thomas Richard" X-Mailer: aerc 0.15.2 References: <20240102-j7200-pcie-s2r-v3-0-5c2e4a3fac1f@bootlin.com> <20240102-j7200-pcie-s2r-v3-18-5c2e4a3fac1f@bootlin.com> In-Reply-To: X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Fri Feb 16, 2024 at 11:48 AM CET, Siddharth Vadapalli wrote: > On 24/02/15 04:18PM, Thomas Richard wrote: > > From: Th=C3=A9o Lebrun > >=20 > > Add suspend and resume support. Only the rc mode is supported. > >=20 > > During the suspend stage PERST# is asserted, then deasserted during the > > resume stage. > > Wouldn't this imply that the Endpoint device will be reset and therefore > lose context? Or is it expected that the driver corresponding to the > Endpoint Function in Linux will restore the state on resume, post reset? This does imply exactly that. Endpoint driver must be able to restore context anyway, as system-wide suspend could mean lost power to PCI RC controller (eg suspend-to-RAM) or PCI rails (dependent on hardware). Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com