Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp73181ybx; Thu, 31 Oct 2019 16:09:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwT23GMJVdIv2r2Z5jIndtUsKxLU9A2bvouOMcvIRK7r3GaRRJRbjEUnasX6JuN4TxNrmn X-Received: by 2002:a17:906:b347:: with SMTP id cd7mr7051390ejb.105.1572563374786; Thu, 31 Oct 2019 16:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572563374; cv=none; d=google.com; s=arc-20160816; b=XADg8xBuLbU74+TH/6/IOcLFlisUKqSRoLB2rAyWzQtzQhvXj/hiisfuqIAjckuRhm gthpkVAyH6EljNnlISNkgj+ttv5fLSfVDh0FJ8nitAByH3IyTss4Lsq6N7txPfV904+S qGFfRAyVn+z8ZGOuplD+zDi+eafYxmxqM3n8Agbj2ZfLoTA3VHWy6MTcUd+9KWZYatBr mL+CZPDilg3tzJ23pfReF+HWp2MuEG4hcTKvr4jNNRfYHwKpC8XVP2ToYZQpWkmbBeaH oxefPfzyq3C2FBl1Tu2ixUBjcJ/qLbsWalT2nEbq1NG62IxpYyfXz/Cv3/eqEM5MA/rK jxLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=kcEj0zagT1kdGnm51IepUWol06DL1z1IUNa12dd8Jp4=; b=wrMWIxxeEPf4N1m/C1w4jTpmIaYFD4xwTVp1gQmfR48djDCXlIxg2BDR7d3myvHokd wbVsa1gUPoG6hOIEP0HFJJVruiy44zpJh5Tt5tB/ABaTvpXhuStbM/ku755PX0/2KKIZ +t7/FyAN104VH/SXfcA6behrK+yor2dOtqDYOt3+TSEI6RhnijFoAkcExDmU9TgKWrvu +8ezjEIiglWTaI6xyAbvJztYg4FdsUPtNbTcZb9hbfDde9AGT8W7f2b+NegwphCgh1xU h/8v7jMKCm25VoUIQUgEH9LmPGByLUoQw/+zAxEzmrDq7FVJuBARIIjB67JeuUuUTHIt tdPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=li15LPx+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f26si132858ejr.92.2019.10.31.16.09.11; Thu, 31 Oct 2019 16:09:34 -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=@gmail.com header.s=20161025 header.b=li15LPx+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728737AbfJaWC4 (ORCPT + 99 others); Thu, 31 Oct 2019 18:02:56 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:43304 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727715AbfJaWCz (ORCPT ); Thu, 31 Oct 2019 18:02:55 -0400 Received: by mail-il1-f196.google.com with SMTP id j2so4726868ilc.10; Thu, 31 Oct 2019 15:02:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kcEj0zagT1kdGnm51IepUWol06DL1z1IUNa12dd8Jp4=; b=li15LPx+6k9TbBmNsi4igNQNptExK0rDlvtE6zga52XA1/6JpM1H5iL8Cyv5EckBka rygvNDBf+Xlm7lmmOfW5tECTv9en0bqRJhvPOYv26SBWrdLF2xffJDYa2hwXjoLf/xeW OUQynDulrDqZc5hkFbkbJi7umsIAuUJoFisT2hB5XjKb92+GrofWHPFtBQRMZsiU2Bcg 0WSegVaW+AqgTyvgGJyFSnjPite1+L0M9+uBqQgaWa3URv7zJYO9vx5+AryEVndHBsJj Mb82OGQbJK+InTipjZJyyTIRTfh4fhH4vh6qlYEzQPsSTWb2GisNNa/CQR4FOf/7u4ey oLLg== 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; bh=kcEj0zagT1kdGnm51IepUWol06DL1z1IUNa12dd8Jp4=; b=Kyk9iGCbZSyYhxaWOkWKUMFnYp0PEUP9oP5UMrHm0jO6lIxiXZ6f3UIIvVRg5IdEui S5t4pQGd63svG4sVIKWR4BlVE9pbBYHLbJYNnUzjnpFRxo4D33rbn/PYKydTpu65qZU4 X4oxMqCowTh2qbrZXfhP3kJ7PCIquYZFGjv6gtigJpg01spNbVdS7cIin8uDVyaExhLV PPiblPOAitOkjoJ9/T/AxnZjN60ZIGPXD/lIV+XiQxJesjOR+XJNYmWs+Z7Z6A1ZWEdw +oAhRw86pn/eYpmIgn1qvHK4/Plv+hjA+dJ2f1G42JTXZjnJde5U6Y/gYe9yqOd1SSFx 83rQ== X-Gm-Message-State: APjAAAXEpoUX/bBi6J6880rRh9oReVenMC9NsMNYh9jzNhQ/b35qaudk i92tom/Mve2t4ehKHsjlSb7uOCQfccju6QWN3lWdzA== X-Received: by 2002:a92:17c8:: with SMTP id 69mr9020215ilx.42.1572559374831; Thu, 31 Oct 2019 15:02:54 -0700 (PDT) MIME-Version: 1.0 References: <20191031184632.2938295-1-bjorn.andersson@linaro.org> <20191031184632.2938295-2-bjorn.andersson@linaro.org> <20191031194347.GO1929@tuxbook-pro> In-Reply-To: <20191031194347.GO1929@tuxbook-pro> From: Jeffrey Hugo Date: Thu, 31 Oct 2019 16:02:43 -0600 Message-ID: Subject: Re: [PATCH 1/2] remoteproc: qcom_q6v5_mss: Don't reassign mpss region on shutdown To: Bjorn Andersson Cc: Ohad Ben-Cohen , Avaneesh Kumar Dwivedi , MSM , linux-remoteproc@vger.kernel.org, lkml , Jeffrey Hugo , Sibi Sankar , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 31, 2019 at 1:43 PM Bjorn Andersson wrote: > > On Thu 31 Oct 12:36 PDT 2019, Jeffrey Hugo wrote: > > > On Thu, Oct 31, 2019 at 12:48 PM Bjorn Andersson > > wrote: > > > > > > Trying to reclaim mpss memory while the mba is not running causes the > > > system to crash on devices with security fuses blown, so leave it > > > assigned to the remote on shutdown and recover it on a subsequent boot. > > > > > > Fixes: 6c5a9dc2481b ("remoteproc: qcom: Make secure world call for mem ownership switch") > > > Cc: stable@vger.kernel.org > > > Signed-off-by: Bjorn Andersson > > > --- > > > > Excellent. This addresses the issue I was seeing with the Lenovo Miix 630 > > > > Sweet! > > > Reviewed-by: Jeffrey Hugo > > Tested-by: Jeffrey Hugo > > Thanks! As we talked offline, it appears we both missed the crashdump scenario, so please spin a v2 that reclaims the memory just before trying to access it in the crashdump scenario. I'll be happy to re-review and re-test.