Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1030553rdb; Fri, 16 Feb 2024 03:17:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWc9Rn1nLEzmT8e/tv6e8kcWFCvTLMFdA9yC4Il7evaShxWvGMQME5VdnqedYawxv3zPNhi4kMt+e2KsjwiEIXjUoP3EFj8WPuBasQvmw== X-Google-Smtp-Source: AGHT+IGq5HzO+ynNgI/1XSaOmhqDm0l5dqgG9iR0H5Kv391tIyGl7yIybeZiizRyhDekx4XICLqg X-Received: by 2002:ac2:5f45:0:b0:511:437c:9646 with SMTP id 5-20020ac25f45000000b00511437c9646mr3052865lfz.6.1708082242635; Fri, 16 Feb 2024 03:17:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708082242; cv=pass; d=google.com; s=arc-20160816; b=PvnHM16Pov3dxD0+z4uHg8AdRU+2plvs3Hgybk0veVebvfpFMmks418cnbqhlP1MVP 74u8iSaVBd0WtiZV+MAkM0NsSSoRgo6M9t5aMCZoAoL5XAXsuyExsWQB0AMokWxb9hEv 3kZOUwX25RsbYTqe53i+/bohDv98TORmteR2PYjvlR3McStHEgx3Ogv2rxAn1kXIZWyc NWy13uM5bIxiYMOW2MffO+WIYSG3PgLlSuJqcODugMzD1B6SBIn6gRUcm59xK1CpziUT iRUSAdLVQb4Ftnej+Sl1M+gd6FSlZsQveK9mN7grrMAwhSQdcI6Jl50ci07SLEZmStrv LzvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nDk2WfWJt2aWSEBbueJOkQd7RmDzKK1+hpo9/zydDDU=; fh=aOnciNhcb1VEIdEGS3wqRA0GtVUOrKTMJJnIcEN3yac=; b=HzdG1jUeQF4oLlLUwWuGcjUdYYR1J1a/I8rJYDo6bqs1+OoU1CrpGbe8pV2OIMHA/Y gXXJ1vWIen2ZN51fWq5IItIIPI2FtykzWbnJzHp4PWTgnRIt2d1nvToRTgpFZ9rw1znu LN7GqdPPDeZNt31XyO7G0E29u1/zqdCDTw5LBCwhkjUAyM5SXTVIfne7M8CGo6i0TCQ8 UvOqzRk68FemOwtqkRSJiqGCw8Kz1LK8i5+mH0FQuKxKse+ROfbcDBzUgXbmMjq329Jk PsiG77nKj6GWfG+ygf3BbDznPKSy8t6hUxtDtHIIswO91FXQWcws4NRlVTPTtKxhKEBL MAQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xnjqB70R; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-68505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v24-20020a1709063bd800b00a3d8d08afeesi1520548ejf.227.2024.02.16.03.17.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 03:17:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xnjqB70R; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-68505-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6123C1F215D1 for ; Fri, 16 Feb 2024 11:17:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F51459B6E; Fri, 16 Feb 2024 11:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="xnjqB70R" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 E07B459B42; Fri, 16 Feb 2024 11:17:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708082230; cv=none; b=pr/N3PyBtvZnZBungHjeMgIsuQNT/lWMvrGhxeekkVGfGa1Uq0N3bdh3Wn1AIgjA4q2aM9OgAo4JNq+A/9bPGtlpJQS+xmzRVdvHrOLu5uDbE3D7ucXxYuKBmCYOZphMW4YKeMaF3dZkdQPqhYjtO5ns++Kwdvlr4W1ZGhFnEyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708082230; c=relaxed/simple; bh=/WroAcfP5qG7Ht8rBeZ30Rehc+ZEdMafXSdz1qut0Qk=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=K45RLyH1aOHxLhEI3GguC9frUSpT2AauTdgysZCp/kJsV48ZTLr+U5tmJnNeVLiJkYglOjHCsUe08xfRHgA7J6ZGpmEn7MY21l5bMs/1KmCkHqiGvu8r7F0LeWHNSG6tazkZMku5TC+Yg4I6ayylO6Z122fksb6igt8zC2zhXTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=xnjqB70R; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41GBGYwO083346; Fri, 16 Feb 2024 05:16:34 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1708082194; bh=nDk2WfWJt2aWSEBbueJOkQd7RmDzKK1+hpo9/zydDDU=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=xnjqB70RZei0K4O+rcT6eO2ST3qLKTEhl14fwgXrQ/PjR0cJd047YBlktyZiFMTxN kaE6WnDRU2uoAy6LBBf/cW5JbWMlYDuJH/sXEI9mWo/1w5XolypGO7ih9/EjTw5e3d lmijIfCRv+JCRF+uEubu2vehX1u8irFGHmRiYRwA= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41GBGYBh004264 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 16 Feb 2024 05:16:34 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 16 Feb 2024 05:16:34 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 16 Feb 2024 05:16:34 -0600 Received: from localhost (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41GBGXf7110209; Fri, 16 Feb 2024 05:16:33 -0600 Date: Fri, 16 Feb 2024 16:46:32 +0530 From: Siddharth Vadapalli To: =?utf-8?B?VGjDqW8=?= Lebrun CC: Siddharth Vadapalli , Thomas Richard , 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 , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , , , , , , , , , , Subject: Re: [PATCH v3 18/18] PCI: j721e: add suspend and resume support Message-ID: <8d47e1d0-69a3-475e-8dd8-64514872e026@ti.com> References: <20240102-j7200-pcie-s2r-v3-0-5c2e4a3fac1f@bootlin.com> <20240102-j7200-pcie-s2r-v3-18-5c2e4a3fac1f@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 24/02/16 12:09PM, Théo Lebrun wrote: > 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éo Lebrun > > > > > > Add suspend and resume support. Only the rc mode is supported. > > > > > > 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). Thank you for confirming. Regards, Siddharth.