Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3796602pxp; Wed, 23 Mar 2022 06:08:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDFpSc3AK42dhLTREarllONDhYPMQDC9+Eqt0oyWNGdXUc5xD3zYUayrnifTahx972Zl3w X-Received: by 2002:a17:907:6e8f:b0:6da:8e96:95f2 with SMTP id sh15-20020a1709076e8f00b006da8e9695f2mr32979098ejc.489.1648040883851; Wed, 23 Mar 2022 06:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648040883; cv=none; d=google.com; s=arc-20160816; b=ItrYMQaxQBybJ+8c0ls5CquxtTeA1rPAMgz3M9d22wcHq0XaTEYKiUXGc5DqMFk7N0 V/wDrRJo3t15vfU4N6LwXN0afnehkdzLd4Fp7+UsIGzhRW6t8HPTRZdD4fHsPu8EQT1o +grkpu1509oMB29mxw1xKdamYyeliVPmwZPeq7VQO50XMWr4V9/z4FzhykIh0bCxgT4p anPKq0aEaAjaUajGK7Zj0JtDDM7gOmfBu66qJqryh/L+3deIKKLbNsuyEj4V8fef01z+ s/9FqTXZfX7KxPu80tOwcP/b+aPVCKeOpIlnUUVHEPerXO4RdzX+/lxSRvRRbhE3bjkh 01Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=UNsiBHkIycmbBebNQ6EEEfxiUV1hLv6uy9LOGdGxxp0=; b=buNQetmTp3bXkBQXbhBoL7OHoUAmSEChyYTXadKs2osZ+p1gErp7bIY4t7WE5rd2QH F9X6N1gbyVidIiuAdPomqh0eZAARKR1sH0i40CGduofGqrBwKJZO5d8d4WQKqrLB5Rx4 3RImX/G8SkOkgtk97FUacEzyycKOLUoRg/jtDrCVzElyMV302EL/fl6ZXhuVEdqm761N 1DKYGKC/NjQ0gI3TB7S5bW95HxYcMRT374aBs6Qu0SnVFxlpxhFy40Z5uMULja3iJ5cY vsZ0WLTyt4TvDvazmM/cBmT93miX6hZg4DFA4A8NWRfaVx9S7OAEwpnFA1ABM7BNw00Y czCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=evHtH6Fb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v1-20020a17090606c100b006df76385e22si12685532ejb.706.2022.03.23.06.07.36; Wed, 23 Mar 2022 06:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=evHtH6Fb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237417AbiCVWIG (ORCPT + 99 others); Tue, 22 Mar 2022 18:08:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237547AbiCVWIC (ORCPT ); Tue, 22 Mar 2022 18:08:02 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88F1A6004C for ; Tue, 22 Mar 2022 15:06:34 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id p17so16637774plo.9 for ; Tue, 22 Mar 2022 15:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=UNsiBHkIycmbBebNQ6EEEfxiUV1hLv6uy9LOGdGxxp0=; b=evHtH6FbBsevNuVMM+CjK8h381YvBcpulMNttJ4M8pODP3fLQap6AG0oVjDp0xSaAc qrx+gI61ilHDzryS2kmrTKUO3DZC4ugMnAvNhdN5+JYSdUhzJFP1AfMzTuZxwQhCWhjD duUcEmfIR5Mvrg7zU1lmT4oCzYzONxPMCfFIu4+V2zY4M4TqsZJByVli8SNzXiV/D1pB 0AmsCnSedvD3wgqjogpHXrTvaK9u8+fU+eFe602P8rQ2OqySRonrZfiwSxTKupVKH094 +Kk6WJMqc3+ceBj4oh8cuN0R4nC+gGNzo23nShqjEPzw9G7iLRPB8kSJKZQZJTrkIWie wz+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=UNsiBHkIycmbBebNQ6EEEfxiUV1hLv6uy9LOGdGxxp0=; b=iMNg6g3f3aJiM2p6k1hf4ep1J8Vi/mSd5EVNhOdooqCtpBKiNVxzReDe0wALI0d2Sz F88wmMuN75+Ok6w65aEwasOEfUQ2cw3THBR8BydLifvDkJd/6P5QYZxHxbCJoiXMqbjn BVq7skaIcLySW4+V3vl4j+4BJ6GwMbFmDWyShVp+hW1TwLo2kWfZW+/Eoy9KtZFVdsx4 Y9D5iYqNQvlyTHUp3W9nrxbP8Gsq979utcdOCd9s8fnZM4jNZBvx3DRJwyBjemHNmZjv UMLSKU2nut51AoSfBdEjIVJkqrRLew+s+XpFPZ5iYY94rA3PRaasFx5M5bAvcH+SUDny oyEA== X-Gm-Message-State: AOAM532Fz7JbEvIbU0j8Y1U1mwqY6BI+OaZOuoLsaZ2OWgp6EeUXWhuE TaxpfSsHWnEXjexE/ryPkwoTMQ== X-Received: by 2002:a17:90b:3b42:b0:1bf:b72:30e9 with SMTP id ot2-20020a17090b3b4200b001bf0b7230e9mr7598374pjb.135.1647986789160; Tue, 22 Mar 2022 15:06:29 -0700 (PDT) Received: from localhost ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id b13-20020a056a00114d00b004c122b90703sm24463694pfm.27.2022.03.22.15.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Mar 2022 15:06:27 -0700 (PDT) Date: Tue, 22 Mar 2022 15:06:27 -0700 (PDT) X-Google-Original-Date: Tue, 22 Mar 2022 15:06:24 PDT (-0700) Subject: Re: [ammarfaizi2-block:palmer/linux/riscv-pmu 13/15] drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst In-Reply-To: <202203222137.eK8TFhiJ-lkp@intel.com> CC: lkp@intel.com, kbuild-all@lists.01.org, gwml@vger.gnuweeb.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org From: Palmer Dabbelt To: Atish Patra Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Mar 2022 06:24:04 PDT (-0700), lkp@intel.com wrote: > tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-pmu > head: 33363c336516e4beb9dd7e8265b369ff96d07dcb > commit: 4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98 [13/15] RISC-V: Add sscofpmf extension support > config: riscv-randconfig-r006-20220320 (https://download.01.org/0day-ci/archive/20220322/202203222137.eK8TFhiJ-lkp@intel.com/config) > compiler: riscv64-linux-gcc (GCC) 11.2.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/ammarfaizi2/linux-block/commit/4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98 > git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block > git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-pmu > git checkout 4905ec2fb7e6421c14c9fb7276f5aa92f60f2b98 > # save the config file to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash drivers/perf/ > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > drivers/perf/riscv_pmu_sbi.c:42: warning: cannot understand function prototype: 'union sbi_pmu_ctr_info *pmu_ctr_list; ' Looks like that's just fallout from the ** comments. >>> drivers/perf/riscv_pmu_sbi.c:498: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst I sent a fix for this one, there were a handful of them. Sorry I missed that. > * This function starts all the used counters in two step approach. > > > vim +498 drivers/perf/riscv_pmu_sbi.c > > 496 > 497 /** > > 498 * This function starts all the used counters in two step approach. > 499 * Any counter that did not overflow can be start in a single step > 500 * while the overflowed counters need to be started with updated initialization > 501 * value. > 502 */ > 503 static inline void pmu_sbi_start_overflow_mask(struct riscv_pmu *pmu, > 504 unsigned long ctr_ovf_mask) > 505 { > 506 int idx = 0; > 507 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); > 508 struct perf_event *event; > 509 unsigned long flag = SBI_PMU_START_FLAG_SET_INIT_VALUE; > 510 unsigned long ctr_start_mask = 0; > 511 uint64_t max_period; > 512 struct hw_perf_event *hwc; > 513 u64 init_val = 0; > 514 > 515 ctr_start_mask = cpu_hw_evt->used_hw_ctrs[0] & ~ctr_ovf_mask; > 516 > 517 /* Start all the counters that did not overflow in a single shot */ > 518 sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, 0, ctr_start_mask, > 519 0, 0, 0, 0); > 520 > 521 /* Reinitialize and start all the counter that overflowed */ > 522 while (ctr_ovf_mask) { > 523 if (ctr_ovf_mask & 0x01) { > 524 event = cpu_hw_evt->events[idx]; > 525 hwc = &event->hw; > 526 max_period = riscv_pmu_ctr_get_width_mask(event); > 527 init_val = local64_read(&hwc->prev_count) & max_period; > 528 sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, idx, 1, > 529 flag, init_val, 0, 0); > 530 } > 531 ctr_ovf_mask = ctr_ovf_mask >> 1; > 532 idx++; > 533 } > 534 } > 535