From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A80A1C433EF for ; Wed, 1 Jun 2022 05:16:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345510AbiFAFQ3 (ORCPT ); Wed, 1 Jun 2022 01:16:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232096AbiFAFQ1 (ORCPT ); Wed, 1 Jun 2022 01:16:27 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE74B813D5; Tue, 31 May 2022 22:16:25 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 26A9368AFE; Wed, 1 Jun 2022 07:16:22 +0200 (CEST) Date: Wed, 1 Jun 2022 07:16:21 +0200 From: Christoph Hellwig To: Rob Clark Cc: Robin Murphy , Linux Kernel Mailing List , linux-arm-msm , Rob Clark , Christoph Hellwig , Marek Szyprowski , "open list:DMA MAPPING HELPERS" Subject: Re: [PATCH] dma-debug: Make things less spammy under memory pressure Message-ID: <20220601051621.GA21535@lst.de> References: <20220531215106.192271-1-robdclark@gmail.com> <39d1fa65-8e82-721c-171e-ef36bda1c561@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 31, 2022 at 03:19:45PM -0700, Rob Clark wrote: > um, quite.. tbf that was in the context of a WIP igt test for > shrinker which was trying to cycle thru ~2x RAM size worth of GEM > buffers on something like 72 threads. So it could just be threads > that had gotten past the dma_debug_disabled() check already before > global_disable was set to true? > > I guess this could be pr_err_once() instead, then? Yes, we could use pr_err_once to reduce the chattyness while still keeping global_disable to disable all the actual tracking.