Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4804500imj; Wed, 13 Feb 2019 01:07:02 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib0GCcuqiDuNTfRqSP5ljxj6ghPEC92SNqRs0f2I+gfQd2RAhbouSd9jWyNAXY3FdODDGui X-Received: by 2002:a63:fa51:: with SMTP id g17mr7980463pgk.66.1550048822725; Wed, 13 Feb 2019 01:07:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550048822; cv=none; d=google.com; s=arc-20160816; b=Up82zY9Gy8IplUdqoKs5yKciPBlHRTnMXnNCDMX3o1wbNZxImHa4JtO3xbvOsfUwcL /Y14k2jvmeXQGjrbTSgZGhq/yU9VI9Vx6oC1Ocu5fuISWz4/5G2pn51b5NSyAnX/kJpf Uf5C5ixH1eSk2z8u6XOqetzcK1wNCbkz1jUUBYIYKGHl3q8TgdE9WIBIHN59uBkkDEFa wPdyeXB1GSc4xNzgNw3zRfX4hoRe7NP/1V19ViCSSXe23751y8UVHlUyCnbkAzYSv2rt ya9Gzsl7KVGn8I0+II0bxkGe+TTs95ISOYxktH2ABhhOhDI/WuDduHEMrm/HIYKnmow3 PMZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oa898J5DYixPpvrXehNIzm+uZ1BeIMAqjC27Zoi9YxY=; b=Btqq8y896hlKCWx8nXj8lnNEUjjZzxsE8zD1OiT8MMGJJHgZmQEhp8msooyT+zDG0k OHnaUsKk9vgoihrrvhD4iBD3vRxCM6ijIx69kUsj3ZV8jCgUKh0la7fDabjODbLDhk+F +Ayqtp6WVdIToA3/8QsT0zXcX+yWUqhmSomM1XzSRvPppiHubrfpQhnGtQ7nHjECvCmi qOt/SZsdrnrJKNNxTB82JI1fRxD6M5We/NDOV3VR6rUi0U1g9HsBw2h1D33zrFsHMaah l+DTrbIz+lIKEoFplOcrx/OZEnz4Zi7HLeIAIzqoX+cvhAeClX5nPjBEd0vx5yWBsHyz +hvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ffWS8VD8; 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 d12si14750844pga.506.2019.02.13.01.05.47; Wed, 13 Feb 2019 01:07:02 -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=ffWS8VD8; 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 S1730457AbfBMDUc (ORCPT + 99 others); Tue, 12 Feb 2019 22:20:32 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37638 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727346AbfBMDUb (ORCPT ); Tue, 12 Feb 2019 22:20:31 -0500 Received: by mail-ed1-f65.google.com with SMTP id m12so689791edv.4 for ; Tue, 12 Feb 2019 19:20:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=oa898J5DYixPpvrXehNIzm+uZ1BeIMAqjC27Zoi9YxY=; b=ffWS8VD8LmmK7FtwFSnp21AiBXDQUX32HbDtodD5sxBqnX5tQsX0m671sqeB4M+H4S LQ2Xk4BsfGjZuFyOeDCN85TPo2wxUZXsrTa0UKMlbzCVNlBFeIOeoFlzPdxN/axq6Ypk Fp9S6jxuuIb3Pv4EgY6TY8H2PHF4rNLMhK8EA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=oa898J5DYixPpvrXehNIzm+uZ1BeIMAqjC27Zoi9YxY=; b=A8d7zCfiaqHWPRRITnLKCOWOkrqxvq0bZKtVTjYr6UxPTYpTYK4Rd/5Eum9CyNAJhY tY7RxT9oo9CRBrV1gCbYP2TJ4w1DNwBucUgHL3eo4D2nwplfdFRpJ8rgeCduGtgyYduM W1MK1hHTR1fKRWUvHbnXE9WLFyqJ25zcb2ZyjdoSkkpA60t3kL8h4SwHy0GON7b36OGe iaFhTiawvZDgvhYOrzLsmg7oqVGUUWZVLJbePR8tVyLftd7AkcSZkRD19d/wqiJuKDtw r61nxY6hyATCNO+T+3TyWk7DWq6bBZ1Hxf3GKsmMK8OYmYReVFvkQrDyxDupdnreVzFS RHyg== X-Gm-Message-State: AHQUAuahrExJwsO4HQXHGMsRVYIdCU+1bP3hWE4kNsRYau057Y3Y2z0N mwfvt/NXlJNl456M/tKL5BdE85ZjBoiTEGXiCd5z4w== X-Received: by 2002:a50:9908:: with SMTP id k8mr5319525edb.246.1550028029818; Tue, 12 Feb 2019 19:20:29 -0800 (PST) MIME-Version: 1.0 References: <20190131093131.245531-1-pihsun@chromium.org> <20190131093131.245531-3-pihsun@chromium.org> <20190202001749.GT81583@google.com> In-Reply-To: <20190202001749.GT81583@google.com> From: Pi-Hsun Shih Date: Wed, 13 Feb 2019 11:20:18 +0800 Message-ID: Subject: Re: [PATCH v4 2/6] remoteproc/mediatek: add SCP support for mt8183 To: Matthias Kaehlcke 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" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=E2=80=99s SRAM. We need to turn on the power of SRAM before using it.