Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp147051rbb; Fri, 23 Feb 2024 15:21:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUyZCJteASOQtl5OpvdxPO4pBzknFG/+BO5FSLe0MKyHg1Ywa8tzcNQiYZN2IitOtiDmTLMHUMZTtTmQCsl8VN9KY858ARwI8qFtYSfXg== X-Google-Smtp-Source: AGHT+IFS7CX0VRl5V8KQXQ3gqS83ehwInaYJrW2H7teXfoANxhRoirnVKDZ62/be1o8bSd9umvil X-Received: by 2002:a05:6358:340a:b0:17b:5c4b:90a with SMTP id h10-20020a056358340a00b0017b5c4b090amr1512375rwd.5.1708730500284; Fri, 23 Feb 2024 15:21:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708730500; cv=pass; d=google.com; s=arc-20160816; b=tM8Qb2gS9Cg5pkkPl80zhx25/JWNCdpQSRafpIwDZE/PHZijy7Afmii7DqrrYfFIGf vQmMSCWNGjMTFkcSwLYGIb6BynVMzBcnn9hZJagPK+Q0GANX/rKHm9cX49GGm8tnO4l1 dBRel4hLNgT5QBuBstQ0EWcBTxv5p65gJNIS24G4BbSUeG1W11kO7XaakK862Jxki7lt br2OkAwPRYbgtvQ00bC5DttYsypg305F7iId3Tkpd20sTxJehXV8A9p17p9piwjp944l uxf62ufTQuR6MWvacikAzkiJZjGcn+LcYDbHSa8ovoTYOlgzKA4i0bKE7iDnJ9cXSJL5 1Iig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Lv8kK7ptZjOhqG6I8U4WtzwN64CZSv0zam2PuJamwfc=; fh=aG8X5P7cr/pVMRx0r89PXj6j2RDxjZZ7Mwqn39TYQPc=; b=UHSmJBAj88DDiF/sZLfOQeXIEyH8tlcKUd5ifRhrvGTlSbqVQL00r4dMRPRqJ8dBs9 cNvobVABvds8EvrcIzIz82te74FgTASeegwpRnFZNQjeBqtEVIMhwses7zYEpDoEEj1T HXXoUykjxNDOHNU5IdmcHJEdAfyQrpqnwkm/FoGR8Pj/6kWtQEQh4Ipbp2DKjQVoZQ+D 9Ru2Y8Ywlj82ms51HjchztmLFeqCoAgWC8W4Pn5h6DBs26fAzVTUW0yF0Ntt6tOkTF7T XHMDdCVjZ1TdxLp9cbIehlOg0Zh5Xzvwkd6x7vRzAuRU9A+rzMomZmrs9JUIHG4Tb7UB o3Bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WFnNPflj; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-79306-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j73-20020a638b4c000000b00565db2812a0si41732pge.60.2024.02.23.15.21.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 15:21:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79306-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=@quicinc.com header.s=qcppdkim1 header.b=WFnNPflj; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-79306-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 DA956284611 for ; Fri, 23 Feb 2024 23:21:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 558DD14D432; Fri, 23 Feb 2024 23:21:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="WFnNPflj" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 3302D1EB34 for ; Fri, 23 Feb 2024 23:21:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708730493; cv=none; b=u+TF7NarduP5I5S5m8PFb6/OdJVgf9FcyfWuFJRcjW5veQDa5SOSt9NoxPoigjaqqVLWh4QHbJbqQ1zd8J1G3fLBWLNQ80YaUM/gvW6RtVGiK8gh9DCNHylvtPh4KdDGyRXY62bPtHbqjWanZQJMVUkso6Ql4EZwxcUQiUL7pXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708730493; c=relaxed/simple; bh=xscoC/V7feI+XaMIY8rQRrTAXP1mzokg/ZRXXRswI1k=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=bCqbqIBA9Enfc16N2EAzFnZ7tpPzZWWeFHpKKgQn1IFtJd8KL9yyRl6G6hlL4tufZjlg3WG9AqRH92DDVGtZi0QIsC1jzl64lYyTIHO+HvYjEnttEtseiSU1n79w8FJer/k65L3qF6LpKau/qJlDU60OiEoHl4zaNlNgHPh5WXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=WFnNPflj; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41NNGc5Q009854; Fri, 23 Feb 2024 23:21:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=Lv8kK7ptZjOhqG6I8U4WtzwN64CZSv0zam2PuJamwfc=; b=WF nNPfljQA/UQ1MEVspoZLGrxPtMjKZthGAgSdzzd/CKVbs9n5tGEHKijqDixlB4j2 By6wEenYhnrwDdWx7sUK4Oz6MmP4HO26XPUINl5cWoMQXoJJfGwYUEi/vJCgsdYw Pm6Hp1CSRBYmWSt7mTt2GCPHtG4Rxg8Lwj8lz1E+Be/HQmVMb6ONGA1g/Dpnv58l W39Ma7/Bhop8PPIPs/nSagXnw360T2/S3+KGIi7/XQCvQg4mbDlTo49UpVnWSlMe lWAq0nSLAs+LaUiYJLPxO3/rGAuNrTKj8CMUXpZSRU4Xp7H3ulx/w7muw+wHQ9Ka n6HrcRU2hncAjIrFqt5g== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3weqxd1tkp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 23:21:25 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41NNLPle021564 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 23:21:25 GMT Received: from [10.110.73.113] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 23 Feb 2024 15:21:24 -0800 Message-ID: <9d58dfb9-bb1e-ff58-5abd-e2a9d9595446@quicinc.com> Date: Fri, 23 Feb 2024 15:21:24 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 10/13] accel/habanalabs/hwmon: rate limit errors user can generate Content-Language: en-US To: Oded Gabbay , , CC: Ofir Bitton References: <20240220160129.909714-1-ogabbay@kernel.org> <20240220160129.909714-10-ogabbay@kernel.org> From: Carl Vanderlip In-Reply-To: <20240220160129.909714-10-ogabbay@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: xrK019jIS6Eo8zFlHgCvIp7fhI1AWL6I X-Proofpoint-ORIG-GUID: xrK019jIS6Eo8zFlHgCvIp7fhI1AWL6I X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-23_06,2024-02-23_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=615 malwarescore=0 suspectscore=0 phishscore=3 spamscore=0 priorityscore=1501 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402230167 On 2/20/2024 8:01 AM, Oded Gabbay wrote: > From: Ofir Bitton > > Fetching sensor data can fail due to various reasons. In order > not to pollute the kernel log, those error prints must be > rate limited. > > Signed-off-by: Ofir Bitton > Reviewed-by: Oded Gabbay > Signed-off-by: Oded Gabbay Reviewed-by: Carl Vanderlip