Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp639501imj; Wed, 13 Feb 2019 14:46:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IZccyF6vBzMkPa36xRhcERwruy+lPC0Loi98+vzyYHV1rdymda4mOQ5bNLMC/tfb/n9Xk8x X-Received: by 2002:a62:3ac8:: with SMTP id v69mr584143pfj.150.1550097979737; Wed, 13 Feb 2019 14:46:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550097979; cv=none; d=google.com; s=arc-20160816; b=dZZSurpyTL8gLh8e/gfrFDhhF5CG4NEeaVpfxtR5y4apB9WBHpURX20SaNFbZcjoCU 32EzEVd+KrHiKZBl4QTmFsxTpIwKdFquX56YuDk6gUkrgNRBJZS/A8KA3e0DG+FPvFJM tDFZdUFMtNxMVH6Y0kXdNQuU4bFaorEII5DJveT9CgJkL1lCWqfJOm0CZNjTZ4VXK4aR mlAtV1633D0Vnz78qEzO2/zD6aFuT8QmqX9PaIUTX7IaRToJh0dLcQctHXC5cPsCWqRe W7uDsMwHodOE55Abpo4SvCvYBVTkcLS/LVhV2N4r4XxRj17eSEhfDEDzZ5NG7AUj7Vig +fVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CsGa6xrCqoqf0+VNg/zr8QUSD2calqzCdb+HFhflSIg=; b=se8Y2lVFjZjzxtGQwSLaNM/2UG7c1192Gx3rZE29D/DBYHG3imd2WSpDxDAyuSuHfg BwNtWk1lIwRUQcw2qEE+r45Ef98y5tXwZsmQh2fyWcaBTaFYnFO9Q4XbIEsC3rpE2M2i uvF+dGBLqtrY0FQzr6ribMQeQ3ONdwGl/0jsWilPc4x3P7Lc83JoyaLDBCKAt7L70dVd cq1doxVd0/Ln3Gr1OTpvx9DP4bfxfWYcziS0HyxA3l/hTwSHtfUy1fVyroYYGIpi9Q24 NaAEUBx4ipVZf6cYoHO7EkSD4xANCb3T5VLMTDIviTa1dvtfGRjYIx5myqoNb+kTesZG 5Fww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ta1+v11L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si552892pgd.361.2019.02.13.14.46.03; Wed, 13 Feb 2019 14:46:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ta1+v11L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392838AbfBMRBI (ORCPT + 99 others); Wed, 13 Feb 2019 12:01:08 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33434 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733155AbfBMRBH (ORCPT ); Wed, 13 Feb 2019 12:01:07 -0500 Received: by mail-pg1-f196.google.com with SMTP id z11so1418519pgu.0 for ; Wed, 13 Feb 2019 09:01:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=CsGa6xrCqoqf0+VNg/zr8QUSD2calqzCdb+HFhflSIg=; b=Ta1+v11LXRHE/m6bXl5bYCsrBWRz/5QZ7KpLJx/oTBx/nbCuz6bWAvfekWwrVt3Ki1 0VVTcz9dXsYVNRrA3o3AX381GM9U3qYYxYNYeHIN8DM45K+g9Umf5zS1fvlJyuLd8BM7 d7Wb9hT5ZOUss5/hrhMHbjTZpBhs13i/WevDw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=CsGa6xrCqoqf0+VNg/zr8QUSD2calqzCdb+HFhflSIg=; b=IdVi67S9m/0t2ai68sQGexa3ptoSJgRqBr0CG9KXVbjnnRy6Fj8pG+CpsUAdngKyqk /dkJJB56nNvxuADRYzeNTQHtD71O3x4TjAZ8EoNRmxLGdmM1JsVA3/Vz98nRKTMUrKc0 rfkA6gdLVizix9Ek6tr/rk0oUzd9pnbwoZnjx2T1Oz3URWzG34KC2Ep9dax3o5wvRmgB gTQ4fx9efewaiYiKfg4bLJL5QIZXRceQHmyAO6A1SbtAlrHmLYkxENLuR8am2DifcPa/ z0xhMcpk2pfXjcVAJKiG5CirljMqJiiJgL9g/eas3zdG6CptSHFlQ0njXhzsH1/pcEd/ zXjg== X-Gm-Message-State: AHQUAubUyayJlwJ36yYFUt98k4sVBKOT14BbAKgXAlq657tcvUgZGKvq EpCEnPE09GX2eFKGp0M/m8OoKw== X-Received: by 2002:a63:9501:: with SMTP id p1mr1302223pgd.149.1550077266604; Wed, 13 Feb 2019 09:01:06 -0800 (PST) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id b15sm14524523pfj.44.2019.02.13.09.01.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Feb 2019 09:01:05 -0800 (PST) Date: Wed, 13 Feb 2019 09:01:05 -0800 From: Matthias Kaehlcke To: Pi-Hsun Shih Cc: Erin Lo , Nicolas Boichat , Ohad Ben-Cohen , Bjorn Andersson , Matthias Brugger , open list , "open list:REMOTE PROCESSOR (REMOTEPROC) SUBSYSTEM" , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" Subject: Re: [PATCH v4 2/6] remoteproc/mediatek: add SCP support for mt8183 Message-ID: <20190213170105.GX117604@google.com> References: <20190131093131.245531-1-pihsun@chromium.org> <20190131093131.245531-3-pihsun@chromium.org> <20190202001749.GT81583@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 11:20:18AM +0800, Pi-Hsun Shih wrote: > Hi, > > Thanks for the review, would address most comments in next version of patch. > > On Sat, Feb 2, 2019 at 8:17 AM Matthias Kaehlcke wrote: > > > > Hi Pi-Hsun, > > > > a few comments inline. > > > > It's the first time I dabble into remoteproc, I don't claim to have a > > complete understanding of the driver at this point ;-) > > > > On Thu, Jan 31, 2019 at 05:31:27PM +0800, Pi-Hsun Shih wrote: > > > diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c > > > new file mode 100644 > > > index 00000000000000..920c81c3525c2a > > > --- /dev/null > > > +++ b/drivers/remoteproc/mtk_scp.c > > > + return ret; > > > + } > > > + > > > + writel(0x0, scp->reg_base + MT8183_SCP_SRAM_PDN); > > > > what is the purpose of this write? > > > > Answer from Erin: > The code needs to execute on scp’s SRAM. > We need to turn on the power of SRAM before using it. Please add a brief comment since this is not evident from the code. Thanks Matthias