From patchwork Tue Jul 25 05:56:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 108613 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp178899qge; Mon, 24 Jul 2017 22:56:55 -0700 (PDT) X-Received: by 10.84.174.131 with SMTP id r3mr20805296plb.37.1500962215273; Mon, 24 Jul 2017 22:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500962215; cv=none; d=google.com; s=arc-20160816; b=q3ZHsBWJscNSOIl8fF0qgT2KgmrgsfyiKBPyqe2dBsgePjCgk1tRQD5hgliTsH2fGz nlt6r509gZSpErdfaJtUqWkGhQuvnAvtkUl/qoTQWShxK8QvFxvJAYIUzoreq/q5jwIr E9m1Tabu+3eUrkf6qqWpRq/pYc++tkfTnGaZRV1+dxWwDnsenFW/zOaPpBAixdjEFw6e Jip8pRuegDA2DhYyzT7Q9bTSZwuPFrbwFWX5ogWcrN3EOXHgC/UyvjWMDFhLdjd+CAUJ iwVMajO14Rq2Ua59phm759ChrrytlCve81RlweheYv1baZVaF4mWfz5HEHHXLuXkhfnn 2vQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=U/AXDkdrleGfeOrHl7y1bMP/7II+Ob32WKc3mLhPKgw=; b=W2RP1J2nJUo9OQvyJfV7bY+OIqfBoLVW6EMK0Y1yEYETq2NU+o473xwy0SI8qfTdYD 4d7S/GXQLA2QIHO+3QCL6bfCv9j0vgUdaxYIc0V7Ay/HpfBKoJ7v2ktA8OwibacxFmEY lbelXcGhDEiuZYH7/Rh1YNmh54t4HrhZwfYlZeAY6aCBnlQ4d1bXyN0RoQI3nOBPVZ7L vtNwdAM/+2dRvW7JUDXnuMkLz5eaqEufukXKHTbQnE3cG+HYAhwfWa7RGQPxJbBW+v8O BERxPHrDjXYvHpzZDvz+ufL6dlFuDsbtRqqQG1zTM/J6B7XoNl3pGOrB5s0HOHtgYLVn OZ4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=AaSox/Rw; 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 t69si7837429pgd.95.2017.07.24.22.56.54; Mon, 24 Jul 2017 22:56:55 -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.b=AaSox/Rw; 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 S1750896AbdGYF4v (ORCPT + 26 others); Tue, 25 Jul 2017 01:56:51 -0400 Received: from mail-pg0-f53.google.com ([74.125.83.53]:34557 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750762AbdGYF4s (ORCPT ); Tue, 25 Jul 2017 01:56:48 -0400 Received: by mail-pg0-f53.google.com with SMTP id 123so66299634pgj.1 for ; Mon, 24 Jul 2017 22:56: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; bh=U/AXDkdrleGfeOrHl7y1bMP/7II+Ob32WKc3mLhPKgw=; b=AaSox/RwxK3tzYZeQLPIqkL5x14ur7Q8y/CAuAtBvZDBRZF/NxhjA1azHUT5DWp9JS REPZ2EiIm2piF/PDYfhhn3bfS+zDcAVTv0uQso2ooxdvBuvy/3eiekFKvmwn9sIrQnkl uA0y6jI8GUv33FioJkUfvNXcvuYt/5HvSvMUc= 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; bh=U/AXDkdrleGfeOrHl7y1bMP/7II+Ob32WKc3mLhPKgw=; b=oZSaRSgek9O/tL2hMw/sjRNfft4q8urdDAWn+rC2tjA2kRV2HqJ6uH3Cel2lvoeTES SVN7l5th/X3ebkp5fNiRcf/ETtxohFolLxH33y/JbresfV/00+g6M7gvPpIJtWiAi5rZ PrYNjRm3cUxsp6bd7bt1xY3RRD8w6GImzMum3WJkqwmXUIz9qOTMUOtEp4Tr0ieTMQxd KY/OtrkavtT1L/Zrsbz73uZzhPUfa0lA3vy+7IyPDQTGuWlUBP9m3tzFwJ+BjrYIZ34P adQll+UKHp8nseWeIwfxePp6XEFnHVQhSfUCTE9ohThjNTqY1wWXFM9NgZp9UlFR5FQg dhtQ== X-Gm-Message-State: AIVw111yWxHWIw8pty0iseJb7zjULsl71aJKq4puYMblXGfipHNvH7Qf Sib8qPzsTH3gPn+z X-Received: by 10.98.14.93 with SMTP id w90mr18611573pfi.298.1500962208286; Mon, 24 Jul 2017 22:56:48 -0700 (PDT) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id a6sm25323438pfj.136.2017.07.24.22.56.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 22:56:47 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , David Brown , Bjorn Andersson Cc: Ohad Ben-Cohen , linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH 0/2] Qualcomm GLINK SSR support Date: Mon, 24 Jul 2017 22:56:42 -0700 Message-Id: <20170725055644.20947-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the common Qualcomm helpers to tie in subsystem restart notifications with the ADSP and Modem PILs and then adds a driver for the "glink_ssr" channel to propagate these notifications. This is needed on GLINK RPM enabled platforms to have the RPM reset the state of the communication channels to the peripherals, allowing them to be restarted without the RPM crashing due stale FIFO data. Bjorn Andersson (2): remoteproc: qcom: Add support for SSR notifications soc: qcom: GLINK SSR notifier drivers/remoteproc/qcom_adsp_pil.c | 6 ++ drivers/remoteproc/qcom_common.c | 71 +++++++++++++++ drivers/remoteproc/qcom_common.h | 10 +++ drivers/remoteproc/qcom_q6v5_pil.c | 3 + drivers/soc/qcom/Kconfig | 9 ++ drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/glink_ssr.c | 164 ++++++++++++++++++++++++++++++++++ include/linux/remoteproc/qcom_rproc.h | 22 +++++ 8 files changed, 286 insertions(+) create mode 100644 drivers/soc/qcom/glink_ssr.c create mode 100644 include/linux/remoteproc/qcom_rproc.h -- 2.12.0