Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp198475ybt; Tue, 23 Jun 2020 19:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIiRQ21B6EMF4OeQiuAwmRo4ANW7H3hGfGvo3VmBC8en2TZE7qrDYSGjO7FN0HWk0DUMa2 X-Received: by 2002:a17:906:4a45:: with SMTP id a5mr14275887ejv.384.1592965576194; Tue, 23 Jun 2020 19:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592965576; cv=none; d=google.com; s=arc-20160816; b=yoXQO7n/4deKgowRT5B+og0kAV/06l6XwHVxQO69iFI8kPye9x1EGhVgw89bDfu3jg tmJpkIZHMxmbFCiaQ4mHT/j62fL1fCwea+misFLz267yo5vNonEM99BIafySu2kCJ7zU 8WjFSZh9q6XcVhUrHZndOTuo7cvi9f4TnqY2HYueYPEc5ZTMfvTNjEYLV6YdRgidja5S MU/1mAu/Uf+5UXXSjme7hi5H0gpil6NP6fosl7FGtkFxaspAYjhTo3ry2M0UObYRIDHr pZvqEl5nA/o0VoqaM1tAkVuUf0wClvRr3O8qI23VwlsQ40harrlAvmpxgq3MeppPptG1 hTTg== 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=1mCiZ0LBndXYxiozsdiA/cEIckO+AekMZdrsLGVK7J0=; b=uu8nIdkpGLQP5A0qVGeVXVOSN7paorUPH2tRnubChyU4ZJgRUAQAsN8anxGRk1n5t5 rrXJ7F5ctqp7gMoVDSYq8EbdcU2yYkWICoqGsY1S+vLeCc7XzFVL8wvbcU1FwMf8tJyV RxIHivAmc2CzFxPSPeWUcwPUzcUIiN88x2gpWkzrBbp3MwsL0FJEzMjJBFiNV77gbVAd 1Dw5fiFt9cKLiikBBgdCrJvGSPDG0a1yTKGa4kak9sNifOYQyyR8KQY1ZfQJiUmSCnTL vZjx7zr4Y10S3a8T2c6S/jihcEcjUC1YFrcGt7fsQGawY7v84hI66a+R/QKodT3bP16z o7Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=jvD02+8G; 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 gr2si12376994ejb.454.2020.06.23.19.25.52; Tue, 23 Jun 2020 19:26:16 -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=jvD02+8G; 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 S2388169AbgFXCZW (ORCPT + 99 others); Tue, 23 Jun 2020 22:25:22 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:57293 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388102AbgFXCZW (ORCPT ); Tue, 23 Jun 2020 22:25:22 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592965521; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=1mCiZ0LBndXYxiozsdiA/cEIckO+AekMZdrsLGVK7J0=; b=jvD02+8GXjZX70K2JIHrhETUi/THh1CgFwYp2rd6Ag+7DVm73EV1kb2wAmLC1SDwu7tkHXo1 OXL6+AWbqyRWq6JW0K7LyemnkcAHJebAphHrKeK+QONEjLBo0DENOwv6WnThqRqwLkaC118X +8USWfIlCJSQuShJPYbqyFB50Tw= X-Mailgun-Sending-Ip: 69.72.43.7 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-n04.prod.us-west-2.postgun.com with SMTP id 5ef2b97e6bebe35deb993f45 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 24 Jun 2020 02:25:02 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4CF87C433C6; Wed, 24 Jun 2020 02:25:02 +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 64907C433C8; Wed, 24 Jun 2020 02:25:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 64907C433C8 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 v6 0/2] Extend SSR notifications framework Date: Tue, 23 Jun 2020 19:23:26 -0700 Message-Id: <1592965408-16908-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: v6 -> v5: - Fix mutec locking and naming convention 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