From patchwork Wed Aug 7 05:39:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 170703 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp6660408ile; Tue, 6 Aug 2019 22:39:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/VxPoqEaOiih2S1OBj7uSL9+x64PXLBxmISME8VIMOfQ12l8mhHMuKK/aeZLG7TDVfxZ+ X-Received: by 2002:a63:b20f:: with SMTP id x15mr6403546pge.453.1565156392099; Tue, 06 Aug 2019 22:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565156392; cv=none; d=google.com; s=arc-20160816; b=qDYPZo/xToylNaLI1UAdSbbdx1Z/UP1/Pd0TNQRAaMtQ1jXZmiLdNSYUyWsOi7yMu+ sh1kbkwp0GwImbaPmRyjbOuE6r2wUZgbaKIvgrukkcop20qrUuWTGUlQUsQTZRaAJb+/ Wj5UvgjbHh1cdODbA20LO4Z1hno5kdBgLbIHn2PGVOSPnyTGlKmDz3Qej3M0kq6H5tbq D0NbioXRn6ftSBjrNkml5yK75O0JHejoWgOAlMTxz96X62M6VMpJzdAjabnZwY4yj018 J2PeF8DVhBOaDRcrl7e4+pyzV8+ejTbxbCIXLzF2DOh6DuVd1xRh/B5mZP6B7I2h/Lr3 Wt3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Azf6n5aesLfo8ksF3UKgIcdUJWEiOJj+3CTvEIIBQEU=; b=vhNw7SQFQsIvo0Rlhf/1XHEbvEWqowGw0f/69eyj35gTeVPjW3VFx224oB3/wI4Yt6 J5mIL/Td/GDo9o4xkiS379zYxpboIET+MNcim+Pyl1miPjx14dtxvOKTZvcFrltPgbvs SalUnK/bLrJYecSAbzLQMh+4IlOZEHNqU1nsPOwZTY3R5rCLs/41ZUV1/DgXNMlCw2kM L1q10ojL0wKzYlKcb6OXwiRz9AYuBRzUGYw65ao04iQ+wrwwN2HKC3UiK4oRQUEk9soL KMc2faixGjl6LwdWAb5ukeHwz5cMrbRG+bMJX6BLo64qlhuDjEvdntI63tPUazYumkNn wuNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r+ko+PGS; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c62si53135984pga.441.2019.08.06.22.39.51; Tue, 06 Aug 2019 22:39:52 -0700 (PDT) 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=@linaro.org header.s=google header.b=r+ko+PGS; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727159AbfHGFju (ORCPT + 28 others); Wed, 7 Aug 2019 01:39:50 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:44370 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbfHGFjt (ORCPT ); Wed, 7 Aug 2019 01:39:49 -0400 Received: by mail-pl1-f193.google.com with SMTP id t14so38912735plr.11 for ; Tue, 06 Aug 2019 22:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Azf6n5aesLfo8ksF3UKgIcdUJWEiOJj+3CTvEIIBQEU=; b=r+ko+PGSH4q8aK6qnYsbCZwtAtGxCRoBAu0UqNc0v5qIAR1lC/J8nryL8EDZyoEMDG 4r9EpEmt/97cLz8NEBISJRXL0rMq9YX93YRnbATgXoVc+oMZ1CZ1KAW97mWoeS8T5i63 7Z+e8Rx1mPZHgYWigWROV/kgUgBJuSuSKQZGQdQ/S77mJodtmalmc0ov7gSKpf59tQu8 +vhcxV3mwTeFx2YGPSEWzCuRVr1+uEoIGHp7XA4AbYpIboXOzCKseekx1AViw+avyrUS E+Z91JLny9fG6QnGJS3wocoAWRaJ7DUWgZ83p/mpnLRMxyWKseQMJ55WUSUsyQQoBKA0 Ebgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Azf6n5aesLfo8ksF3UKgIcdUJWEiOJj+3CTvEIIBQEU=; b=r0XXJbXW7g/WQx6LnPHt+U/lRqpUXdlgnSjMeGptzarycxIwtruwj3AhYER3YLH0VO m5kZZd+GAfLYvV2wPKux2yHSq+7+dGtBhgomXE4/jQ53hsaAtrMDCHH0yIjAKiLls9GL 9yb+iK9TLCpxS9IQ3Hvor6xQL9cGy7d3hBRm1AoDPyL/qfq2wK2ftyhrI9Lr2nsmB5cc obouhbS1UpA0rvS97dmfMmxhrWSWKe3VI6Ue4dq1BVONuwaHIX5LAU4BdiArfxlfu+s7 nK8QfxG8m8fg4+/EvCXBdhb72loY9zXEE1N0QQ9beF079WEKb18L66XtEZ/v0/DcaFT5 3Wyw== X-Gm-Message-State: APjAAAV/+BewdXUrybUL9U34bI9Wi81vm3X+M9iTxjmP3zB2nJ/DZSpr g1xQFa5TkuLaSrgNLfsodYkhDw== X-Received: by 2002:a17:902:788f:: with SMTP id q15mr6697292pll.236.1565156388456; Tue, 06 Aug 2019 22:39:48 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id u7sm86070777pfm.96.2019.08.06.22.39.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Aug 2019 22:39:47 -0700 (PDT) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson Cc: Andy Gross , Sibi Sankar , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH 2/9] remoteproc: qcom: mss: Update IMEM PIL info on load Date: Tue, 6 Aug 2019 22:39:35 -0700 Message-Id: <20190807053942.9836-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190807053942.9836-1-bjorn.andersson@linaro.org> References: <20190807053942.9836-1-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the MPSS address is calculated during load store it, and the size, in the PIL info region structure in IMEM. Signed-off-by: Bjorn Andersson --- drivers/remoteproc/Kconfig | 1 + drivers/remoteproc/qcom_q6v5_mss.c | 3 +++ 2 files changed, 4 insertions(+) -- 2.18.0 diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig index 3984bd16e670..b88d74632d39 100644 --- a/drivers/remoteproc/Kconfig +++ b/drivers/remoteproc/Kconfig @@ -119,6 +119,7 @@ config QCOM_Q6V5_MSS depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n depends on QCOM_SYSMON || QCOM_SYSMON=n select MFD_SYSCON + select QCOM_PIL_INFO select QCOM_MDT_LOADER select QCOM_Q6V5_COMMON select QCOM_RPROC_COMMON diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c index 8fcf9d28dd73..d9192fa40e05 100644 --- a/drivers/remoteproc/qcom_q6v5_mss.c +++ b/drivers/remoteproc/qcom_q6v5_mss.c @@ -28,6 +28,7 @@ #include "remoteproc_internal.h" #include "qcom_common.h" +#include "qcom_pil_info.h" #include "qcom_q6v5.h" #include @@ -1040,6 +1041,8 @@ static int q6v5_mpss_load(struct q6v5 *qproc) else if (ret < 0) dev_err(qproc->dev, "MPSS authentication failed: %d\n", ret); + qcom_pil_info_store("modem", mpss_reloc, qproc->mpss_size); + release_firmware: release_firmware(fw); out: