Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3197828ybt; Mon, 22 Jun 2020 18:07:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0Rjzfl2pIbjirQU0DJwTYgmRL1125F/gLi/v/kQ1grgP7cC8YcfQNZJfcKmzoZsIVoXCS X-Received: by 2002:a17:906:3041:: with SMTP id d1mr18482700ejd.7.1592874453641; Mon, 22 Jun 2020 18:07:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592874453; cv=none; d=google.com; s=arc-20160816; b=iA0cSuYk8ajU5TR4R0RxYmYCIbBPFcMYj1jGnMyV5ZcglSr0X/OEXnn4znfSr4NuIu 32l/h46EqxTP4Kun7UoTHd1wkf40gV+ZvxHZJTudFZCDamy0VQWJOEADAoLKsofP+r33 rE/quTb5JCRuBgMTv9tj0WTK6DtgXZdCgAqoPpdv0k3qCpdI3spRWaTcISEb0b3bTW3q It8P951sUXHTZxsbairERaJdNCqWpqVsLwcQbQrKV1Sn4zSxjWxd1yui3PMqFh7cDQ04 Z6nNZY6Sy2bVZoPCjlPWyRZdDJ7ItBoFP5vL6hUo8UT+u8a9UQhadUWl498Zn3LWqgIu 0hYA== 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 :dmarc-filter:dkim-signature; bh=XSGSsXlXDBiekM7bF6DTX6/EWPB4KQKjvQGP3O6Lh6I=; b=NVyvkFT2eHm1GS+fUGVFYoUZqfoc4ePJ3EuxJ1z68XuW+DQRqp7zLx3xV0Em3ysbOv oSOUk3QAEne65y0vNs6jOFkgaHGDzE2NSSFRxyVsNW7UqYmdsKVrGGWM2zXRXBMYCq6I hqVhiIc8oiQr8FU2O5WtACFlaJRlD5+XfosUu5p5qNy7YqBSZTBVI38yxfqO/A0DlpRh SIX8Z6G8CDLFVb4ogCUw3HucgSklVNt9gBPgLiZ+wF12YbYTeizAVvat8dUxjUlZh/zv soD1o88K4lU8cl7lr72xStJyPAcHxZ/1H67WoZEQdVmy0lhyG4t+Fc3gNdFFJmmkOGGx XvOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Xe1VXlAY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs16si10721556edb.197.2020.06.22.18.07.11; Mon, 22 Jun 2020 18:07:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Xe1VXlAY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732477AbgFWBFM (ORCPT + 99 others); Mon, 22 Jun 2020 21:05:12 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:49147 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731526AbgFWBFM (ORCPT ); Mon, 22 Jun 2020 21:05:12 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592874311; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=XSGSsXlXDBiekM7bF6DTX6/EWPB4KQKjvQGP3O6Lh6I=; b=Xe1VXlAYYaOJ5puYp9mJpG4ovM9iq15EPEi4dheASzpAT9zdOvD1ULleKrmHENg/qiOgmn43 HV41D3k5aRA3xZQE1DBsMZ938AQrYaD4gSqvOql/yLFwsRFisYzgcdSMBsC0aSTk48CLKyAe /aN8aGQhc59LPinjmnrnyqH09zM= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 5ef1553dad153efa344cc466 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 23 Jun 2020 01:05:01 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A731AC433CB; Tue, 23 Jun 2020 01:05:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from rishabhb-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rishabhb) by smtp.codeaurora.org (Postfix) with ESMTPSA id DC876C433C6; Tue, 23 Jun 2020 01:04:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DC876C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=rishabhb@codeaurora.org From: Rishabh Bhatnagar To: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bjorn.andersson@linaro.org, tsoni@codeaurora.org, psodagud@codeaurora.org, sidgup@codeaurora.org, elder@ieee.org, Rishabh Bhatnagar Subject: [PATCH v5 0/2] Extend SSR notifications framework Date: Mon, 22 Jun 2020 18:04:29 -0700 Message-Id: <1592874271-26697-1-git-send-email-rishabhb@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This set of patches gives kernel client drivers the ability to register for a particular remoteproc's SSR notifications. Also the notifications are extended to before/after-powerup/shutdown stages. It also fixes the bug where clients need to register for notifications again if the platform driver is removed. This is done by creating a global list of per-remoteproc notification info data structures which remain static. An API is exported to register for a remoteproc's SSR notifications and uses remoteproc's ssr_name and notifier block as arguments. Changelog: v5 -> v4: - Make qcom_ssr_get_subsys static function - Fix mutex locking - Fix function comments v4 -> v3: - Fix naming convention v3 -> v2: - Create a global list of per remoteproc notification data structure - Pass ssr_name and crashed information as part of notification data - Move notification type enum to qcom_rproc.h from remoteproc.h v2 -> v1: - Fix commit text Rishabh Bhatnagar (1): remoteproc: qcom: Add per subsystem SSR notification Siddharth Gupta (1): remoteproc: qcom: Add notification types to SSR drivers/remoteproc/qcom_common.c | 128 ++++++++++++++++++++++++++++++---- drivers/remoteproc/qcom_common.h | 5 +- include/linux/remoteproc/qcom_rproc.h | 36 ++++++++-- 3 files changed, 149 insertions(+), 20 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project