Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1519485ybx; Thu, 31 Oct 2019 11:47:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxA7vBA3IPDGDzv/rM0JxZbbPsdH1SoYgJm84YhbM1I8Vpkh0mbkt1HE5/5gxdkbcf1zqlc X-Received: by 2002:aa7:d759:: with SMTP id a25mr7898595eds.153.1572547670271; Thu, 31 Oct 2019 11:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572547670; cv=none; d=google.com; s=arc-20160816; b=Uz3ltsX2Ljv6LVzCoEDqvvsEmpXyxJncUWRZ+6WS7JBY9iPPzRJx0VbdQIbYQd6mxH asbzywlUJrAsxnvEO9MiGBUB/dj5qv1IxMixPA1QBm395kOqKetyj9UJjILD13lCe/JA m1QxNm2pHC8v5S+odByM2VxgUKIG3nXF+meTiM5vtWU9tIQPTELuteLD6z+4wYABdO73 gDILVeCY5rcVfdvAuvhtT41alQKYl1uMG2Ns0DUoPxYt7aDyUU88/KKN3bwFxilbCaAl l/lI4ohK0YXiYm0f+TdLUsRx5JcmGXUzdazrRk0JP5LAxRZgRt4GD021YfcKAszVcjPA rCng== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IZB/HP5rByh41Vpe5hUbFd2NNqVPk5ZV2uMfwHrp4YQ=; b=vltMhG9dB8ujOT0hFWzmIgIm868LQhEy8LjTwPrEJGxo+yGNVGPkGXQSUeHyP7vhkl /hH19r+jZB3gbHkXnqcjU3qYf8meYpldsf5cU7n5Y5X6QXqbBqRdM/H7oPPIbc+YV0sC Gkg7BZ+JQehgARDno0AU6pAwwqc/efpZywPOGb91tyFvilNa2/KmQlkEJIDtGV4w1spr 766jSPnVdiUiSj+a7os2pB5HIJaHcSVdZ2pRIrLfSp1aLZIfmzXgyuqguKx2jUZbfmyx iuqK+W47WLs1cx4b6UtKDqPcNN+BvSJJiesBBQ7jcnidBiLrOCmr1SsSA0y7KT9HRkZG /Cyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jknekqfC; 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 w27si1652291ejq.253.2019.10.31.11.47.26; Thu, 31 Oct 2019 11:47:50 -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=jknekqfC; 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 S1729341AbfJaSqh (ORCPT + 99 others); Thu, 31 Oct 2019 14:46:37 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40844 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729255AbfJaSqg (ORCPT ); Thu, 31 Oct 2019 14:46:36 -0400 Received: by mail-pg1-f194.google.com with SMTP id 15so4615070pgt.7 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=s6MCSjnGcn4Mrn/aihhEYs9sgGPo4+4IfohUeOSQ/iyMOA50fXej5iP2mJvdOygz4F BF5wr4fwQfRNENvfMY9WvoZMdeHOCUurJ8MRbmm2WkBWFBOeAj0ZjefXwKumQYJojrf8 hY080CeD9Dmwn/TaVyHH2vG1UrHGTRT3hyGLnWu5N6IPfZI5E+kT+iUQdTghRMhgVCOm 2gMpaO7dFw4pw+MNZVLvpPslFFyrODoxmR256R9MEdUXWvOI3VL3/I9sGmKGIFruJZwQ SzDjmEqHVOQw3htkekNFkevv518/J5ygo9go9QlDkSmrco0t3e21N7x+8UTHd5QHJv1e Lguw== X-Gm-Message-State: APjAAAVWRQe0HkonckfbnTAWuB77jWMfqJ7l4SHa+qVOfrlp/XPutCrg NW9r5eFjyBp6ribE90+967TRcNXxQuA= 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.23.0