Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp790912pxy; Wed, 5 May 2021 14:06:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrMpjFDlyyA87h6mzJ0aCSaHpR3f8lrhInORTFqIwPgg7UMFd5qcCgLav23Lh5IL6MD/2B X-Received: by 2002:aa7:d90b:: with SMTP id a11mr1013953edr.273.1620248782420; Wed, 05 May 2021 14:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620248782; cv=none; d=google.com; s=arc-20160816; b=RUywBVXZ2d/5c0bwd8GU8l9eDeqPizv5mafPP5EPkYSkw8Aky2SViUx6yhdBADg8kS 8mtgI13jR9MyqK5oLS1A/bJG3wjQY5IbRsYlK1GZDENHlok6M85z98ySs2ueINx1R/6Q /+E1/KY6ev/c5ITmb0muoHAQX098q4hDcnRRMl5hPtXOhtSrRLIjOhLWyNRRUfCjj8KP rYSMArSwYb9UHL9nfCqP5TtXYUGh+0TB7FjrrkdLxZ7h7vWAGSxvTUEHeOnyqpC/ZtM8 FmM7CwLBdLFBsVcaYpRUk36XrW3/v1NviT4F5eu5kxrGm9MOXBHkM235ghfdD/poNhvV xv1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iBtzxeku0BzbG6kK0L1hpR6azGfgLKROm2hQUdhdjKw=; b=PdL0nddSqhfPwt/02bvXdcnTVxnWJm2nUPp/jRz8xc7lAvPTQqRIxCcvTkiImapu+g Qlmjn5n3bt8tqOf2oJNtljuzISJtnJ5dIF3pbvgkmE9BDhsQ/HctqkfhXDEBx18T+C5r RniUXXxY40svh9xcIY9mVyEJK5ZNg+RcT0xMQ9ps1DZP+mNZglVhMRTAToOEbukuFgUU jKe/jIwFHTLm3zDw/krQr7bTU8YWtw7mgr+j6nFL5/IRhAWFaaLajn7DXiu5jFHlOcBA umiCuEHk+rm431npi/WMXuAhyeIArIdOkY/bDV/+zrx3Z3seQiDvJ8oen5LzAj4/Ti5/ E+xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=DfvbjnYs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si435665ejy.320.2021.05.05.14.05.58; Wed, 05 May 2021 14:06:22 -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=pass header.i=@alien8.de header.s=dkim header.b=DfvbjnYs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233161AbhEETqB (ORCPT + 99 others); Wed, 5 May 2021 15:46:01 -0400 Received: from mail.skyhub.de ([5.9.137.197]:58682 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231783AbhEETqA (ORCPT ); Wed, 5 May 2021 15:46:00 -0400 Received: from zn.tnic (p200300ec2f0b070095a0cdc8ba9d3b20.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:700:95a0:cdc8:ba9d:3b20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E3C561EC046E; Wed, 5 May 2021 21:45:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1620243903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=iBtzxeku0BzbG6kK0L1hpR6azGfgLKROm2hQUdhdjKw=; b=DfvbjnYs6c+I61Fv5U17vDGrboPu/lFr5kZ41eVEHDcNNrJMPGjK7qD2L4ZzErQJqyY7Cs Y1Vq4HL+4dcqTxlJcFH789yCGpnU1zihb3H3lnTmjR3jxls5S5IClwrvXPvflCoCVr6vkP KnmL3xwU9JFRMB8yPb6ryK50qtLNS7o= Date: Wed, 5 May 2021 21:45:01 +0200 From: Borislav Petkov To: "Lei Wang (DPLAT)" Cc: wangglei , "mchehab@kernel.org" , "tony.luck@intel.com" , "james.morse@arm.com" , "rric@kernel.org" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Hang Li , "tyhicks@linux.microsoft.com" , Brandon Waller Subject: Re: [EXTERNAL] Re: [PATCH] EDAC: update edac printk wrappers to use printk_ratelimited. Message-ID: References: <20210505173027.78428-1-wangglei@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lei, On Wed, May 05, 2021 at 07:02:14PM +0000, Lei Wang (DPLAT) wrote: > Hi Boris, first of all, please do not top-post. > We found a corner case in production environment that there are ~500 > CE errors per second. The SoC otherwise functions just fine. Making > printk ratelimited reduced CE error logging to < 20 per second. If you want to avoid CE logs flooding dmesg, there's a couple of things you can do: 1. Use drivers/ras/cec.c 2. Do not load EDAC drivers at all since you don't care about the error reports, apparently. 3. Fix the CE source: replace the DIMMs, etc. > Though this is just one case so far, we think moving to > printk_ratelimited could benefit broader use as well, by helping > control the amount of kernel logging. No, this will make EDAC driver loading output incomplete when some of the messages are omitted due to the ratelimiting. And no, this is not going to happen. HTH. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette