Received: by 10.223.164.202 with SMTP id h10csp2478552wrb; Thu, 16 Nov 2017 16:23:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMbACogxm6QaQjSigrBf217BGf16Akk+AdaEAPBspmqS9CW2X8W73A0+HNsgAJ+7hbx1hkdU X-Received: by 10.101.65.198 with SMTP id b6mr3311896pgq.136.1510878190829; Thu, 16 Nov 2017 16:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510878190; cv=none; d=google.com; s=arc-20160816; b=DBGBIZQIxXifUWyV5IGQQYS3XQqFtsd9AXu9Gh6Pa5M6Brm9wABcXHtqI81GCb+3VD 6H8UtXCJmiN2zkPIPoKKxYp5M7TaBIOMaCIXqXQahCmogl38PWWcEuDXHYYC3bcu6x+h 1V4FAmiwuIGgAw8j2xWVhRVwBkULGo8PTsE2gzYbbSFR1iFRjMGOVLnJRet/TX4HHm+7 OqxJecvVxNStP9VlT6WctPAqxMwU0yFpSYpkrouBf2ulic7k1ZC4vwT3N8kKXpfpyeGO NFqrY31IkBShuieLZfnv2dhsk+7psA1EfXU+cR/MmWZE6JY1tH+oizNTfd8WSdn/a5BG tLbQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=qKbanOxLJXP7jWi1nTxwZa2PVJjzn/atVwRF4DUcYQM=; b=v3pVQcA4xcVKC0rHur7qDc0tzHedw2lSuJnNuVPtFBqAPMW+l2r41Ji4ji4glAddEs c7ADUJy+yqh7BqzfSXmRudzW0O33W2PK8XrvFsINdy5FVpQXOmTFKqn4VLjwmLLN/ptp mVM/i+6CbT+q5qmxgjLhYcBUk33iwhrwr6oxDUt/E0HdRzH9Jcfy0MvqkaqdBFMnT+pa mubJ2nRxvEzyXMb4mTr8l7vTl1HpJ1yZVAW8Te3n9jAf3ljaxwuuil5sMRPdUPX8kR3a b+K24wKhGsmXj6IkuMHS1s+kijVNyQLU3ZrmTMG7I94+HKCX4eXUjjhbVC/hh9fDsC1Q u2wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Jo/9eVKO; dkim=pass header.i=@codeaurora.org header.s=default header.b=Jo/9eVKO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si1725725plj.341.2017.11.16.16.22.56; Thu, 16 Nov 2017 16:23:10 -0800 (PST) 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=@codeaurora.org header.s=default header.b=Jo/9eVKO; dkim=pass header.i=@codeaurora.org header.s=default header.b=Jo/9eVKO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936771AbdKPUFL (ORCPT + 92 others); Thu, 16 Nov 2017 15:05:11 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:56866 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933284AbdKPUFC (ORCPT ); Thu, 16 Nov 2017 15:05:02 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E7D3E60584; Thu, 16 Nov 2017 20:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510862701; bh=LnFUdjJtaPha3nOitfYuQgK7f36cncjQfmFE9/yvNFw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Jo/9eVKOHILqPVR3MQtn3lk2Ede3URvzUPxlO6fwXNi9Q2KsU7OFC0HOc5Lw7DjvA qh5DCS+2m4+WRHd+5ToY+pc5dznvgM7mvg52Wy2bUfWpdNo2UZ6sa9zKPnE3tIZzml 0yELLHMM5zQjhftgkDeCMkLoiA+Q2wurhRCixVI8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.142.6] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: clew@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 53B87601D2; Thu, 16 Nov 2017 20:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510862701; bh=LnFUdjJtaPha3nOitfYuQgK7f36cncjQfmFE9/yvNFw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Jo/9eVKOHILqPVR3MQtn3lk2Ede3URvzUPxlO6fwXNi9Q2KsU7OFC0HOc5Lw7DjvA qh5DCS+2m4+WRHd+5ToY+pc5dznvgM7mvg52Wy2bUfWpdNo2UZ6sa9zKPnE3tIZzml 0yELLHMM5zQjhftgkDeCMkLoiA+Q2wurhRCixVI8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 53B87601D2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=clew@codeaurora.org Subject: Re: [PATCH v3 4/5] remoteproc: qcom: Introduce sysmon To: Bjorn Andersson , Andy Gross , Ohad Ben-Cohen Cc: Arun Kumar Neelakantam , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-remoteproc@vger.kernel.org, runminw@codeaurora.org References: <20171115201012.25892-1-bjorn.andersson@linaro.org> <20171115201012.25892-5-bjorn.andersson@linaro.org> From: Chris Lew Message-ID: <0ab5497e-94b4-6450-d680-14f002188714@codeaurora.org> Date: Thu, 16 Nov 2017 12:05:00 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171115201012.25892-5-bjorn.andersson@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, Question about the SSR events for sysmon. Thanks, Chris On 11/15/2017 12:10 PM, Bjorn Andersson wrote: [..] > +/** > + * ssctl_send_event() - send notification of other remote's SSR event > + * @sysmon: sysmon context > + * @name: other remote's name > + */ > +static void ssctl_send_event(struct qcom_sysmon *sysmon, const char *name) > +{ > + struct ssctl_subsys_event_resp resp; > + struct ssctl_subsys_event_req req; > + struct qmi_txn txn; > + int ret; > + > + memset(&resp, 0, sizeof(resp)); > + ret = qmi_txn_init(&sysmon->qmi, &txn, ssctl_subsys_event_resp_ei, &resp); > + if (ret < 0) { > + dev_err(sysmon->dev, "failed to allocate QMI txn\n"); > + return; > + } > + > + memset(&req, 0, sizeof(req)); > + strlcpy(req.subsys_name, name, sizeof(req.subsys_name)); > + req.subsys_name_len = strlen(req.subsys_name); > + req.event = SSCTL_SSR_EVENT_BEFORE_SHUTDOWN; Are there plans to add the other SSR events to sysmon notifiers? I think the SSCTL service expects to receive events about remote procs starting as well. > + req.evt_driven_valid = true; > + req.evt_driven = SSCTL_SSR_EVENT_FORCED; > + > + ret = qmi_send_request(&sysmon->qmi, &sysmon->ssctl, &txn, > + SSCTL_SUBSYS_EVENT_REQ, 40, > + ssctl_subsys_event_req_ei, &req); > + if (ret < 0) { > + dev_err(sysmon->dev, "failed to send shutdown request\n"); > + qmi_txn_cancel(&txn); > + return; > + } > + > + ret = qmi_txn_wait(&txn, 5 * HZ); > + if (ret < 0) > + dev_err(sysmon->dev, "failed receiving QMI response\n"); > + else if (resp.resp.result) > + dev_err(sysmon->dev, "ssr event send failed\n"); > + else > + dev_dbg(sysmon->dev, "ssr event send completed\n"); > +} -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project From 1584169667655788003@xxx Wed Nov 15 21:38:44 +0000 2017 X-GM-THRID: 1584169667655788003 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread