From patchwork Thu Oct 31 18:46:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11221765 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 87BB3139A for ; Thu, 31 Oct 2019 18:47:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 648D62080F for ; Thu, 31 Oct 2019 18:47:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jknekqfC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729314AbfJaSqg (ORCPT ); Thu, 31 Oct 2019 14:46:36 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:43117 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729304AbfJaSqg (ORCPT ); Thu, 31 Oct 2019 14:46:36 -0400 Received: by mail-pg1-f194.google.com with SMTP id l24so4604301pgh.10 for ; Thu, 31 Oct 2019 11:46:36 -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:mime-version :content-transfer-encoding; bh=IZB/HP5rByh41Vpe5hUbFd2NNqVPk5ZV2uMfwHrp4YQ=; b=jknekqfCQdDs4huuyK7WRBTw4sn2JFkqcgwzKW+KIDZErDMn8IXEkAU69lC91ZePTN s8Yvp8L0VCT1N/bjIf+g69sZQL4yX5cvMEygUApCEN8dr1MewmmwQkyLW13mY6kfnZHV PeRPIoQaMyTQ78DHwiaXOxekIf7lGq+Xz6N6uj7bNURYnrN5BAb3obdQoqq1wZHKJnAx 6L2mApTK85k7QKJMDGwgVaUPZFLqFKwgKxXwqbTDz8DsMI4sVe3F9KM+7DihbS/LJYJi tRke62p1QAF4LGFAVh4+u3fyyX8SaPK4n+oOcgmI/Te0weEvBtBQlSLoomEiD9Cd/2g8 ptsQ== 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:mime-version :content-transfer-encoding; bh=IZB/HP5rByh41Vpe5hUbFd2NNqVPk5ZV2uMfwHrp4YQ=; b=HZ2bN4PUpTmDXkRzGUUT7s2TR1YU0i3IehHodRw+cQVDIBFJe2LVyd7swtH0To22Yw oF6U2gnp00l0JVgeB0bxyydz0TCCaS07yawD/O8Q5pophB0IJ0Al3E/YtU8izSrFGf9L cbgPOBAiX21Oie+15C6iwgWSJd0aQxcPOgBdAwWN2wICd8mmpzH7DKKDFoUkGK7Uc1nT cY+ZgkXxSXXays9s91mTVkWV06beuCC9U7evTziD87UNYCXSssnQwGhya7zx58UJZfXy 8E9Zt8YaEEcqKO7oqyKvZ9zu6owTbgqiTdcDnxzwySkHiIAkfluToDUXGn2P1KxyZ+lR 2YlA== X-Gm-Message-State: APjAAAUGTk18rd9QDIYlN5/+ERge3KhOOkLI6caQHtarQGODQeHOdJDf lbVkpi1t5wEgXxDs87Vnv+DmCw== X-Google-Smtp-Source: APXvYqyyo2asPSNJFpPqVF/uSfEkTI/6KyfThLC1g8UCU9Q61QKHz5HCqXIPplnQXSNmAfaHfYeuFg== X-Received: by 2002:a17:90a:2e18:: with SMTP id q24mr9375378pjd.61.1572547595658; Thu, 31 Oct 2019 11:46:35 -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 b82sm3950874pfb.33.2019.10.31.11.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 11:46:35 -0700 (PDT) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson Cc: Avaneesh Kumar Dwivedi , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Jeffrey Hugo , Sibi Sankar Subject: [PATCH 0/2] remoteproc: mss: Improve memory assignment Date: Thu, 31 Oct 2019 11:46:30 -0700 Message-Id: <20191031184632.2938295-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Two things came up in the effort of figuring out why the modem crashed the entire system when being restarted; the first one solves the actual problem, in that it's not possible to reclaim the main modem firmware region unless the modem subsystem is running - causing the crash. The second patch aligns the firmware loading process to that of the downstream driver, which seems to be a requirement in 8974 as well. Bjorn Andersson (2): remoteproc: qcom_q6v5_mss: Don't reassign mpss region on shutdown remoteproc: qcom_q6v5_mss: Validate each segment during loading drivers/remoteproc/qcom_q6v5_mss.c | 85 +++++++++++++++++++----------- 1 file changed, 53 insertions(+), 32 deletions(-)