Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp215756lqm; Tue, 30 Apr 2024 19:33:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUddKu1Sb+Tbw5wqLOL5B2B7/T4tYenebu+OuzKuM30VxW6fcCjDg38xo2jZx6p69Gw32y6QhRLIHeIRLEmwDrLb5CdIosVa540MS5whg== X-Google-Smtp-Source: AGHT+IExL7ENc03Kvukx1wnXqODPM+S6vsa2r1LlbWRCLd5rHcH0zR0qcSaDbw/oIxhhigPF8Hqs X-Received: by 2002:a17:902:e551:b0:1dd:bf6a:2b97 with SMTP id n17-20020a170902e55100b001ddbf6a2b97mr1155111plf.60.1714530787209; Tue, 30 Apr 2024 19:33:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714530787; cv=pass; d=google.com; s=arc-20160816; b=vgVIWico2Jvb1AsFEUgGqX06aPZS3Vj1ZbqZTARiSVLUoDNBH9nVWRrjbpCgYcJWCq m5uUCC+4OmVnkaH3D1GSSPyCud57uxfsDNhyi4lxH/QA5zGyhi/sQHHLXSCYLZBaelCi mI0WCxW21NtQyGpXKwXHSeK92LsnqIZDPwhztv0vTJl0dgXOYdw9fBk3EHUPYVly3Rih XtCQ1KXYS3bi7EhHicy9/IktBWREZ33cRAe5uNvVlNAC6HvEwZ5pkLpOnG2F+b7C5o6z 0rNz4puypBQdrC3U0r/SHX2Yti9GDG6cP0QC+KFH2iJ0fxeLUlyMXYYd29ZoTJi7bYIb DtsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=eCbo6F/HrC4PckdifXpe51/f3uKCRSlWALqQQ1XuNPQ=; fh=KvpKcUdh6duNGyCoy1qczyJKTw5/uhArR4AFfxb1Tvg=; b=OqD/VjO4TATraGbOFYhpegQB22JtS7kbf68tm7Z/zn91hKn3YWQtVyYKSYog1Y0sbu XCi6+3lwruurmXnNwS+oobcvdlQkk8+etlKMr7AR305+gVSksB8nVQCtKZgAnuP++08K bXQMpldUHwhxq13+Xa3xjWYHg/+ZkDGO/oqrEn+r6PSnrWR0k1KNG+DVy/kp+FihyclO dgHigBETTT4lpIk0bujHnHZWQxKdihfiGbFIPL+falENzKeSSpqrzkdD4kew2LluL31n 5MFC77xy5fF3aBpoQw740vAuDmauxtj45xZ9fQX5mnv7/vZvjG0zVZvNncOvJqHk+C9w n5yA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="YpO/8Zr0"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-164838-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u10-20020a170903124a00b001e2c6dcbf62si23778122plh.215.2024.04.30.19.33.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 19:33:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164838-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="YpO/8Zr0"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-164838-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7AFF0282552 for ; Wed, 1 May 2024 00:53:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E27094A31; Wed, 1 May 2024 00:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YpO/8Zr0" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 000DA646; Wed, 1 May 2024 00:52:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714524779; cv=none; b=U4dzwiG7m/ROcZpKlVf35poKcRQuTe5J9OfpUhoD/H1brrsmBwYHdwB/QoiXho1upAMgTqJBML04RYm4VeEcgtHuRJUrCqkxZdq7CbCELjY984bcSMmBzcPNGMgv9EDhSaiNL6142U6ENeKxtnQMRHS/pjf1U1hqTAxRWHiR/NY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714524779; c=relaxed/simple; bh=/TN7SiCublb2q/4ojZFR4/POqT5ttG+SWtdRCGOgxd8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aufgg1ySVFOrorNlG9TMnxvmfxUeZ+JBxeEFbNQOi/pMbde0Zi8pd/gyIjjCE3qkUZBDXFf+xVRiuXE9LvrDJd88S9QvNYzDHZQYMo2qago81eTqIxLeWK2wTjFwBeZz345+s++axFygkOhURIsTYxqmEB/s+NH5fZbnkfGzG/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=YpO/8Zr0; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714524777; x=1746060777; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/TN7SiCublb2q/4ojZFR4/POqT5ttG+SWtdRCGOgxd8=; b=YpO/8Zr0/4apu/vf2VqnTrB+aMK7+xyN1+70/LG0SpIxiS/d9pZKTL0q b2/vwZXC4hidF8mjEl3tlKMwSb5ozzAbGw5n8YwGofo1JF2ARPGgyB16p vSr5VKMIPuFfsnokFEFH+YzcOGRcyINp3E8PrFHCr2FWv8GcZlrkqI7Pu Xwnf/S63fTi+Lz+tyN8bxo8eO75uyvkqiThZeI1g4MyxMZVGe6wj8czSF GrhFRkyaiWaf6LYD0j7KZsiCyr06gOLNEpdiaqSnDuwZ5bpfNaNsoYsTk pByzBGPGhgC2DLKGPfYl4ilgo/COgY52z9KxcFo3c08sBT3fgOBsFUP8W A==; X-CSE-ConnectionGUID: AUbc9CL7RfCHHW98SCzUhg== X-CSE-MsgGUID: 9tIuphHFQ3uhlLrhLTt3kQ== X-IronPort-AV: E=McAfee;i="6600,9927,11060"; a="10427247" X-IronPort-AV: E=Sophos;i="6.07,243,1708416000"; d="scan'208";a="10427247" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 17:52:57 -0700 X-CSE-ConnectionGUID: IKMrh20OTIOli/AiCOwNWg== X-CSE-MsgGUID: wuwKJK23QO++FFMVLKNXFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,243,1708416000"; d="scan'208";a="27057176" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orviesa006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 17:52:56 -0700 Date: Tue, 30 Apr 2024 17:59:40 -0700 From: Ricardo Neri To: "Zhang, Rui" Cc: "Wysocki, Rafael J" , "srinivas.pandruvada@linux.intel.com" , "Brown, Len" , "stanislaw.gruszka@linux.intel.com" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Neri, Ricardo" Subject: Re: [PATCH 2/4] thermal: intel: hfi: Tune the HFI thermal netlink event delay via debugfs Message-ID: <20240501005940.GA29652@ranerica-svr.sc.intel.com> References: <20240429234152.16230-1-ricardo.neri-calderon@linux.intel.com> <20240429234152.16230-3-ricardo.neri-calderon@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) On Tue, Apr 30, 2024 at 04:52:52AM +0000, Zhang, Rui wrote: > On Mon, 2024-04-29 at 16:41 -0700, Ricardo Neri wrote: > > THe delay between an HFI interrupt and its corresponding thermal > > s/THe/The Ah, I read the changelog 1000 times and still I misse this. Thanks! > > > netlink > > event has so far been hard-coded to CONFIG_HZ jiffies. This may not > > suit > > the needs of all hardware configurations or listeners of events. > > > > If the update delay is too long, much of the information of > > consecutive > > hardware updates will be lost as the HFI delayed workqueue posts a > > new > > thermal netlink event only when there are no previous pending events. > > If > > the delay is too short, multiple, events may overwhelm listeners. > > > > Listeners are better placed to determine the delay of events. They > > know how > > quickly they can act on them effectively. They may also want to > > experiment > > with different values. > > > > Start a debugfs interface to tune the notification delay. > > Why this is implemented as debugfs rather than a module param? Implementing as module param would require more work. In its current form, intel_hfi is not a module. Its entry points are device_initcall() (via therm_throt.c) and CPU hotplug. I can look into implementing as a module param if folks think its a better solution.