From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8ECF5C76196 for ; Fri, 31 Mar 2023 08:07:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sMhqp/dkTta5tqtQEQxNdycjvB/RQyI0aXCjk1POCMs=; b=vWqrIHUbD33/Hc hyhnrSVIAtGK5DTfp6r1FmaTQK5QcRqIZWEZX1y+tfVzwG/gNHXjlVxh4yOqTfSOfoY9GA7ooJXYJ +LVdu/P2B6tOrQWwpflOuQ32N0HTPS1pEHl6gehllgDNqtWMpcZiV/MYzmfWoAvtL7nT4kGqKtVOV 41T+1SbdsJWsxz9FuewfyotTySdbDlNRE0l2A1BHIPpo9/WHggPEZHa9KARfgsprvipK76dc5Pc9M AykZL6iT2MKd2ziAfZqNWLJcjpvDCvHO9heuid4s5/tuNQREuqkvpt8G/jZk6NFz1LdtCS0LyZG4V yOgmi+JfJiD+tMNpULaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pi9m6-006HbL-0e; Fri, 31 Mar 2023 08:06:18 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pi9m3-006Ha5-33 for linux-arm-kernel@lists.infradead.org; Fri, 31 Mar 2023 08:06:17 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2CB84B82CA7; Fri, 31 Mar 2023 08:06:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 417E4C433D2; Fri, 31 Mar 2023 08:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680249972; bh=hwI8O7moMEGKvJAw99qM33KgYZAC18q5nJaBazMJeU8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rPd8f4Y1fzyJ2H/C8lzIiZnigs4/n2M2AoPnGAVoIruPfK3TYFLfC8tw1XYmoCmiZ KoJtcdPWqSWzpzyGt6AJrbop30nsqwesiVI1gIzY0pWuHffyus4ZJzR7J/p8tpRWO8 nLJM/ly+G1qQBRCSWuSNUWTVeU562tcdVbvrLSbquhkSnVmw7GdQSkLkkrouzEFn8u ClAccJCotZYVrFGLMGPCWjvnA9ChTgSvEh6hpY4s977rsnWoCfjbpmwyDgtcDfMQE+ LkmOS48WYYO9Zsb7VfQyKM6RhjH0imj9V5l31GM2yBYDKG1tCapg6ai1dRvPB/8Kot aQLkft/yf2xXg== Date: Fri, 31 Mar 2023 13:36:08 +0530 From: Vinod Koul To: Vignesh Raghavendra Cc: Peter Ujfalusi , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [RESEND PATCH v2] dmaengine: ti: k3-udma: Add system suspend/resume support Message-ID: References: <20230329155349.2566010-1-vigneshr@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230329155349.2566010-1-vigneshr@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230331_010616_157257_65800117 X-CRM114-Status: GOOD ( 12.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 29-03-23, 21:23, Vignesh Raghavendra wrote: > The K3 platforms configure the DMA resources with the > help of the TI's System Firmware's Device Manager(DM) > over TISCI. The group of DMA related Resource Manager[1] > TISCI messages includes: INTA, RINGACC, UDMAP, and PSI-L. > This configuration however, does not persist in the DM > after leaving from Suspend-to-RAM state. We have to restore > the DMA channel configuration over TISCI for all configured > channels when returning from suspend. > > The TISCI resource management calls for each DMA type (UDMA, > PKTDMA, BCDMA) happen in device_free_chan_resources() and > device_alloc_chan_resources(). In pm_suspend() we store > the current udma_chan_config for channels that still have > attached clients and call device_free_chan_resources(). > In pm_resume() restore the udma_channel_config from backup > and call device_alloc_chan_resources() for those channels. > > Drivers like CPSW that use k3-udma-glue already do their own > DMA resource management so use the late system suspend/resume hooks. Applied, thanks -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel