Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1453615pxk; Fri, 2 Oct 2020 09:54:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4M3pQNJ8Yf1+5QDE/AEf9MaGCbKiueCCAdvDDqMEU0P/s6Okw3yHpjl6V72SDNC/8vHUw X-Received: by 2002:a05:6402:1697:: with SMTP id a23mr3377003edv.195.1601657644432; Fri, 02 Oct 2020 09:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601657644; cv=none; d=google.com; s=arc-20160816; b=Mr/gAZrapwPLrt7zCbL3yj+78hNvIz1tnMxi34XzZxwL5vtUYkbwofK3WL8URWSjVP j51gy8KfM/RMoYqt9eA4OUXfFtSaV9sH76Nnt7E8BZzumi9SC7wU/0gRBFBAijEpcjjX etRGXMbzJ4s9ERzpkIA1OPtYuu2XTNj5XSm6ObuFI7mtMDBs3rwCauvx8Px8lTcyEBtx +GHgx04hm2vBmsY34nSNZ3ZBRg8hQJg1UDdmk5VOrX0+Kk/SI4p2uQU2GO2DpMxUc5yQ fTlDCjzKeWER+xoI7ose7fUHKresDPidVaNRRKJbCk3vNrwd8nYQytIUzuIUM44V4pdG hIJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=uZZJOopqjn2TAWfWSbfnm0nS9WoykfT5gKQuiWxSrtM=; b=RbVKuCel6/xbPdjBOQBNU868s3arz7YmsFJfSis2RHAsKXpYKVrgtNifgTX1zyDY+6 JOkzRiBk84OBkV6e9v+MNmKQIW3kZb9Htc/9cDESgvrIxZH+lybUeEL1FYfkOF5phAV5 nty3vomvaUua2sOHmJLqn1ON8SLf9HdWRkmrgmV+odanFIBs1Y53Qsw19LnmDWxTUguz 1eExIBiXFLQh1rvIla8EYOmqEs/RybEKXoRi27YvBAJ/y+Db0tlrgwImcztV9O3+0Agr elZujx0ETw0sRcQ8SbYkNEknIuo6ALBHUz2t4mhrfW/HToxWlclReBk9UGmICM+xepjg YH9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=L59OvAOW; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si1447178edp.213.2020.10.02.09.53.41; Fri, 02 Oct 2020 09:54:04 -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=@broadcom.com header.s=google header.b=L59OvAOW; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388143AbgJBQwU (ORCPT + 99 others); Fri, 2 Oct 2020 12:52:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgJBQwU (ORCPT ); Fri, 2 Oct 2020 12:52:20 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6459C0613D0 for ; Fri, 2 Oct 2020 09:52:19 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id e10so1098754pfj.1 for ; Fri, 02 Oct 2020 09:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=uZZJOopqjn2TAWfWSbfnm0nS9WoykfT5gKQuiWxSrtM=; b=L59OvAOWIIonGDiCWJpTI5y10i2sSyAthxkxzMjkDsWKw9FG1jblTmiQoD8UhKlHBr vygK53W8RnVvjH0SV7LdfQH3BhTlMN30Te5jp8IVqijTBZOhrsDRePjjuixJ5NnvfLMp t6PaJDzRn5/e2c2QaVdsIfnh9W4yNBe8PmrtI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=uZZJOopqjn2TAWfWSbfnm0nS9WoykfT5gKQuiWxSrtM=; b=fpB9znvGXDYZlX9eggFLkMS7QwgN7C57icDcXMHbVosjQa498Rw3cLvM3NnJfpAADp 0pHsNzdO/Jnp9DAfVsBVSjCFAPDEhIGTDRoqSRSYAd4HOuriKTQUzUKNtBTs1PEEskuT MhL66ZiJ5YiVqQ0kp7cw2Nd0Bb4WUsKtInKVcSFcpoRFxEEKvW2FG+xtI4GfrJXR/BK1 AdVCLgdHtPz2wpwvau70D4m9g+78ioUcCnrxIZzexSMk9MRnZtVcNf1sQcqYKcirNlxx t318eseqhyTnijAS5S/dSDdEotFyZr8Y9+8zvmLCLzeDFqlCEO3XHOqsOQTNSXwN565P 3l9g== X-Gm-Message-State: AOAM533/uovYxNOg4NDCUn32gY1BYxbVaOcycaftTz6PyigVwJsOh+B5 gOU8W4hYjh8211BtLeylwFI4hZ+j3fAMAAvN X-Received: by 2002:aa7:94a4:0:b029:151:d786:d5c2 with SMTP id a4-20020aa794a40000b0290151d786d5c2mr3667509pfl.50.1601657539350; Fri, 02 Oct 2020 09:52:19 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id f4sm2353620pfj.147.2020.10.02.09.52.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Oct 2020 09:52:18 -0700 (PDT) Subject: Re: [PATCH v5 11/15] misc: bcm-vk: add BCM_VK_QSTATS To: Greg Kroah-Hartman Cc: Florian Fainelli , Arnd Bergmann , Olof Johansson , Kees Cook , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Desmond Yan References: <20201001012810.4172-1-scott.branden@broadcom.com> <20201001012810.4172-12-scott.branden@broadcom.com> <5d76c89d-f53a-be22-dcd7-7854a3e1e034@broadcom.com> <20201002045531.GB34005@kroah.com> From: Scott Branden Message-ID: Date: Fri, 2 Oct 2020 09:52:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201002045531.GB34005@kroah.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000b544c605b0b2f452" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000b544c605b0b2f452 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-CA On 2020-10-01 9:55 p.m., Greg Kroah-Hartman wrote: > On Thu, Oct 01, 2020 at 03:12:11PM -0700, Scott Branden wrote: >> >> On 2020-09-30 7:33 p.m., Florian Fainelli wrote: >>> >>> On 9/30/2020 6:28 PM, Scott Branden wrote: >>>> Add BCM_VK_QSTATS Kconfig option to allow for enabling debug VK >>>> queue statistics. >>>> >>>> These statistics keep track of max, abs_max, and average for the >>>> messages queues. >>>> >>>> Co-developed-by: Desmond Yan >>>> Signed-off-by: Desmond Yan >>>> Signed-off-by: Scott Branden >>>> --- >>> [snip] >>> >>>> +#if defined(CONFIG_BCM_VK_QSTATS) >>>> +    /* clear qstats */ >>>> +    for (i = 0; i < VK_MSGQ_MAX_NR; i++) { >>>> +        memset(&vk->to_v_msg_chan.qstats[i].qcnts, 0, >>>> +               sizeof(vk->to_v_msg_chan.qstats[i].qcnts)); >>>> +        memset(&vk->to_h_msg_chan.qstats[i].qcnts, 0, >>>> +               sizeof(vk->to_h_msg_chan.qstats[i].qcnts)); >>>> +    } >>>> +#endif >>>>       /* clear 4096 bits of bitmap */ >>>>       bitmap_clear(vk->bmap, 0, VK_MSG_ID_BITMAP_SIZE); >>> It was not clear from looking at this patch how are the statistics exposed and how does one actually get them? >> The QSTATS, since it is only for debug purpose, it will dump out periodically based on processed_num. >> Nothing fancy as we only compile it in in extreme case for recreating a scenario. >> >> The following is the part: >> >> +       if (++qcnts->cnt >= BCM_VK_QSTATS_ACC_CNT) { >> +               /* log average and clear counters */ >> +               dev_info(&vk->pdev->dev, >> +                        "%s[%d]: Max: [%3d/%3d] Acc %d num %d, Aver %d\n", >> +                        tag, qstats->q_num, >> +                        qcnts->max_occ, qcnts->max_abs, >> +                        qcnts->acc_sum, >> +                        qcnts->cnt, >> +                        qcnts->acc_sum / qcnts->cnt); > Ah, that's not ok, don't flood the kernel log for non-error things > please. If you need to "report" stuff, when all is going well, use the > other common interfaces for that. > > Again, drivers, when all is working, are quiet. Will change to dev_dbg. > > thanks, > > greg k-h --000000000000b544c605b0b2f452 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQRQYJKoZIhvcNAQcCoIIQNjCCEDICAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2aMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UE CxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMT Ckdsb2JhbFNpZ24wHhcNMTYwNjE1MDAwMDAwWhcNMjQwNjE1MDAwMDAwWjBdMQswCQYDVQQGEwJC RTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEzMDEGA1UEAxMqR2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