Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp53381ybl; Wed, 22 Jan 2020 15:59:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzFDy8kibpY78tUiTVAHrC7Bp71a+DCbddqxwf5Ti9Fr8A8pCJZ6wVPcFoIL/F72cG8evFM X-Received: by 2002:aca:220c:: with SMTP id b12mr8424948oic.55.1579737575122; Wed, 22 Jan 2020 15:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579737575; cv=none; d=google.com; s=arc-20160816; b=yzovu06bDAV+o+9Hu2AauR7P6UkfC0FSzVm/t80TFUOVm0CCTkMjQRjShBLlyV1SLC 0W4539WBaqtIbnbpASCyBbaFYLIU/+K9P4W7n47MBtkb6OoqM/sP4WxhcrjfI6NZVgmf Bt9di5D/sMrGCFIdm9E/99gU2Mj7V+ZAlEUCoLUs2kL+RnhGiQ8R3X3/QeBY5usCaqX5 unr22vwfeycXVtoL/GXRjzqd2jzw+6j0ojnq/Rsz/jZk0WxGNJipOXIuO0F5fhlZAGgq AUzIGI6K9MNFZ0mixrAUFz7IGKq0VF/noUkikF+hk5wugHW079wzn4G+S61wE8y0hUjR Gv9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=OH8pQcd+TxVTrS6N0gsCUveKud21QjiYBYSAEiMRoEM=; b=Uda7bIkt0pjEHrJymS8IwMnRH1b6tuNQW+vzn/CRLnHMUPlKKeXiUBGvCS0RiE/MLy VUcppPawV0FE143XVJJZwjJrSpx1UgnU7CSwS9EiaVvzNOt5/z7yXpbZWLjJMHKJAwNY 6Gyq/MSG5In5LpuFlhcP0LZy0BTeA3jfTlBXtO3LewYq/1FZTkH2voyP5G2joeqlFPDV YVcYLRKKbdChKnVqOaLLxjo3hA40zo+tsMIYKLArutdZvUx1u3GDgX0eZDA8ZEdIbW5a MZilyBvaaMPw9A0MOF9KRxcAKP+DFKLDrFu4GLMoCahIaV5g7y9xVvLhQK4EVzdfX1fB 5ygg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="pxSOx/Py"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16si179964otp.184.2020.01.22.15.59.22; Wed, 22 Jan 2020 15:59:35 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b="pxSOx/Py"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726234AbgAVX6R (ORCPT + 99 others); Wed, 22 Jan 2020 18:58:17 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:33869 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbgAVX6R (ORCPT ); Wed, 22 Jan 2020 18:58:17 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1579737496; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=OH8pQcd+TxVTrS6N0gsCUveKud21QjiYBYSAEiMRoEM=; b=pxSOx/Py9jc/OezHund367lWa7cbdyQL2wFco55I1gJ2fW2DAzWFL5xl/fpiJO+o/zkYbKOc joUl+QENhyyX8GtIP+oV5anEEVpwlwpVaWGrMWJKrWXHKO4eQfsDPXQ1FiUGNY6JI7kst+r8 2XEFB1+Fx/pqE/eb7OahdkmUJb4= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e28e198.7fdff35e6228-smtp-out-n03; Wed, 22 Jan 2020 23:58:16 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id EEECDC433A2; Wed, 22 Jan 2020 23:58:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: rishabhb) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5F33BC43383; Wed, 22 Jan 2020 23:58:15 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 22 Jan 2020 15:58:15 -0800 From: rishabhb@codeaurora.org To: Bjorn Andersson Cc: Rob Herring , Mark Rutland , Ohad Ben-Cohen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, Sibi Sankar Subject: Re: [PATCH v2 2/8] remoteproc: qcom: Introduce driver to store pil info in IMEM In-Reply-To: <20200122230849.GC3261042@ripper> References: <20191227053215.423811-1-bjorn.andersson@linaro.org> <20191227053215.423811-3-bjorn.andersson@linaro.org> <60c10082ba90fbba0f056df8575d205f@codeaurora.org> <20200122230849.GC3261042@ripper> Message-ID: <2ffeff6b57e6bb4567f00c09e5b82131@codeaurora.org> X-Sender: rishabhb@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-01-22 15:08, Bjorn Andersson wrote: > On Wed 22 Jan 14:56 PST 2020, rishabhb@codeaurora.org wrote: >> On 2019-12-26 21:32, Bjorn Andersson wrote: >> > diff --git a/drivers/remoteproc/qcom_pil_info.c > [..] >> > +static int pil_reloc_probe(struct platform_device *pdev) >> > +{ >> > + struct pil_reloc *reloc; >> > + >> > + reloc = devm_kzalloc(&pdev->dev, sizeof(*reloc), GFP_KERNEL); >> > + if (!reloc) >> > + return -ENOMEM; >> > + >> > + reloc->dev = &pdev->dev; >> > + reloc->map = syscon_node_to_regmap(pdev->dev.parent->of_node); >> If there are multiple entries like "pil-reloc" in the imem node >> mapping the entire imem multiple times may not work. Is there a way >> we can somehow just iomap the required region for pil? > > With the entire imem being represented as a syscon this will be > ioremapped once and all callers of syscon_node_to_regmap() (or one of > the other syscon getters) will get a regmap back that reference this > one > mapping. > > So doing it this way allow us to "map" sections of imem that is smaller > than PAGE_SIZE. > > > That said, it means that all imem users/clients should access imem > through this syscon regmap. > > Regards, > Bjorn Yes, the clients are spread around in different drivers currently. So accessing same regmap is not possible.