Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp778168ybt; Wed, 1 Jul 2020 09:44:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAxhal3ym9OuMRvJcYqGxo+X9DgxkffALEtr5WF5WAL6w95ZX0QfLbF+ABOB4i1XTf+REp X-Received: by 2002:a17:906:6499:: with SMTP id e25mr23654166ejm.352.1593621865007; Wed, 01 Jul 2020 09:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593621865; cv=none; d=google.com; s=arc-20160816; b=ghWjq+ndNxgRFoYQDpR2zpTYMGTVEsVyAIuZ/KJerZ3NMcwU1AJ6lhdSmk55vsWM6C 5CsP43WJSERQtzj3DDIUJlQ1FnVo7FpcMmdiE7pE4PKcQdnEWeknHaRwrVM47y63irag S8dEEG72g34dk2eWqCVg8xZYaHKHUUwF4YyQLhjqV6x5QGL7q2tQAicyJp8rKRiVU0Jj 4jktHja56T5VvOt2MoI4UTB/ZXz8rSoVrCUx22wbArw0KOREwCv1LAsoI5qUf2Ji9Hrh A3cmP+VwOIB3VTtmIwjCOb+nnLLvNlHMHNVJ1pRPpJ30+Evfq7OWIpU/V1k/4ma/rzub 8vJg== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:ironport-sdr:ironport-sdr; bh=hhs8x4w+BMCag9C2bejz1/IV31FzgF1Dv4mx6IpT0fA=; b=t96UHIhWeF5eMJwPZWptqPWvftDwlQZgloyvhYXEJq1kRUXn48pmpSSEsA2LYdAS+9 dViztJaWUnyUg+1SGjv5FCCZI6ix9IIOdKukFFoIlS/9NY5WRqB/Z+9iBuFWAa0+vFQZ ybRTdXRR32JxVFbybOxanmA/h5s9sUiWc6EkOub/6AnDiATtJvJPVWV6jJydsTo7h0Ep XqqxKGGpEIeSozOgIYqX+ENWRUptxxJisBju+pm0l7tXqShGxRkRfJYzN95NSLPEfSJI kA/2WQEajOU9YbPGhgRxy6vwQJyHiFTALbVSgVCrJp1Xk/ApMGPGgSw5GFJnhRRMYKRX uzMQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si3973787edr.156.2020.07.01.09.44.02; Wed, 01 Jul 2020 09:44:24 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732450AbgGAQlp (ORCPT + 99 others); Wed, 1 Jul 2020 12:41:45 -0400 Received: from mga01.intel.com ([192.55.52.88]:59026 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732161AbgGAQlp (ORCPT ); Wed, 1 Jul 2020 12:41:45 -0400 IronPort-SDR: oRGzju7WHe0OZGl9LaqcDDbdoUmf2ARYMJRugeFBpjYbMBw8Eu8OEx7RZConph0xxhEzlG6KCg /kuTKAN/Fp3Q== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="164667469" X-IronPort-AV: E=Sophos;i="5.75,301,1589266800"; d="scan'208";a="164667469" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 09:41:44 -0700 IronPort-SDR: EoikpcP2W/7ALLzkZ2vGI5g9NRCpYQEm1C/trjn2wIx6E2LQzR+aA5EWw0+bhBo6hQ/J38cF8R tmrl0joXQgvg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,300,1589266800"; d="scan'208";a="313825910" Received: from spandruv-mobl3.amr.corp.intel.com ([10.254.75.215]) by fmsmga002.fm.intel.com with ESMTP; 01 Jul 2020 09:41:44 -0700 Message-ID: Subject: Re: [PATCH v2 4/5] thermal: core: genetlink support for events/cmd/sampling From: Srinivas Pandruvada To: Daniel Lezcano , Zhang Rui Cc: rkumbako@codeaurora.org, amit.kucheria@linaro.org, linux-kernel@vger.kernel.org Date: Wed, 01 Jul 2020 09:41:44 -0700 In-Reply-To: <8526622b-cb31-4d40-95b6-e209b3101563@linaro.org> References: <20200625144509.17918-1-daniel.lezcano@linaro.org> <20200625144509.17918-4-daniel.lezcano@linaro.org> <73150ef4ca536368f087672b917dd9773417020e.camel@intel.com> <23458be6-1e5f-7397-4935-c5268b9f52a6@linaro.org> <171936e84c416d7647756d9b453ef2d4475ebdc8.camel@intel.com> <4c8abeb4ddff2355d9ba397f50b7844a7734c2e9.camel@linux.intel.com> <8526622b-cb31-4d40-95b6-e209b3101563@linaro.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.3 (3.34.3-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-07-01 at 18:31 +0200, Daniel Lezcano wrote: > On 01/07/2020 17:49, Srinivas Pandruvada wrote: > > [...] > > > > > Then I'd prefer we only introduce the events that are used or > > > will be > > > used soon, like the tz disable/enable, to avoid some potential > > > dead > > > code. > > > We can easily add more events when they are needed. > > > > > > Srinivas, do you have plan to use the trip add/delete events? > > Yes and also trip modify. > > Ok I will keep those then. > > > Also I need to have one more event for heartbeat like event which > > needs > > confirmation from user space to hardware the user process > > controlling > > thermal is active not dead. So whenever hardware wants to check > > health > > it will send an event, which user space should acknowledge > > Could it be the opposite? The userspace sends periodically a message > to > tell it is alive instead of having the kernel asking the userspace? > Kernel doesn't ask (there is no timer in the kernel). The HW/FW send special event for confirmation and expects reply (This is upto the vendors). So user space can't send randomly. > Is it ok if we add this in a separate series ? Yes. Thanks, Srinivas > > >