Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15444704rwd; Sun, 25 Jun 2023 17:57:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ43olR6JpjLRt242CoJux54QLQyTY1geHYJ9XlfSTmpGdWiM/XhZMFAKMIz2T5KMsF24MIN X-Received: by 2002:a05:6358:1c:b0:133:c03:53c6 with SMTP id 28-20020a056358001c00b001330c0353c6mr496876rww.14.1687741029834; Sun, 25 Jun 2023 17:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687741029; cv=none; d=google.com; s=arc-20160816; b=mfv8gQlwWLVXEiMbQlBgfDg6pQkbXS+oME1khXxh33mFqT9Has/+/K29idYb7N5h7k TD5tNskzgyOrjcGuXEPcF79PACeR2cTq/QEFuZ1wm/qYxgSFgtUOJEaO95T2u9HwV8/X RlTblCbK4e5e/8Qr5yHKSMKCJwSCmyJ9lWEz0nhcg8AThlt8nI4VA83Mx0jX5lONnUKv 3JFAy3L1HJynFfoGWL2PX5d4+JocvL/HEWJ73B544ZsMy666ehRY0Jc3F+sWUTgLLaw5 LWvbXJ6wgK6hQvXfamf3oWo/TgdHythl1cEjL5kJps+DxkSJ3rNeTodPNjUHNLiTSBLb 2M+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=C6nfG8WeJv6QdBBbrBUp9DaEhlCD+l2No8NyWrNW9iE=; fh=b0Lnbcohkhh8mFFrtyUOfiGm72FkBr3h6OHXeeudH9A=; b=qSIAABASOCmc1ut7X6CeTkK7fqOMCBEDJpjuby1JGSwMvWAZLhbIUjh5UbzoNTDoH1 CO3fxt1HBUxvlW0XqUcaMfBgiMYsPIe3jqV1Owj2ORsKoqYt+roKFPuLmpHvcP+faAWf vrgjxeQuw8xDEeF63FC3+Yiq0o503zq7hQm1LyipdRqoYngPxpWBFD3Gu1XSz0vS2Cma i8VfNJGkvLQJV3N7veEKaPrQQ3ToYTNo5fX6Qjd1skvFfcMWZ/6uzMhFTlFABL8fzFSW e+3ubMqSLL87GENVggg9zfAZmodr/f+LyLTNfbad8HHcuuBw0awa3IK/MO8IBp4I2b+U 4Fxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KqZV83V7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a63230f000000b0054fd53a38a0si3924803pgj.299.2023.06.25.17.56.49; Sun, 25 Jun 2023 17:57:09 -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=@kernel.org header.s=k20201202 header.b=KqZV83V7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229901AbjFYXUc (ORCPT + 99 others); Sun, 25 Jun 2023 19:20:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbjFYXU1 (ORCPT ); Sun, 25 Jun 2023 19:20:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F1F8E4E for ; Sun, 25 Jun 2023 16:20:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88C9760C56 for ; Sun, 25 Jun 2023 23:20:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E3217C433CD; Sun, 25 Jun 2023 23:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687735224; bh=i5xRLAe5dg791RInG06iVVdKNk+C04r6Q3jjBplkE7g=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=KqZV83V7MkY57HGYdKzKvFoB7+9DQ011FaJH5XFY6q/Xa9t69E5EUX//3vmNPnnbK SywtzZnLthOoWD+rpUFLVi4vE1nqAOf6TMeZ9i0QD7XinCMeVHD38xv2dLQrb6W2zX I0tAE8jdg6qH2iAh5+TQJw+MKVvf5r/oSSyLaJZueT+G3PiA5eVYS/Hw/1MbG7JjqS UhqWnPv+pDjP8tD9WLrksPRaaCVUJvVMNs770xmGVDP2WN0m4bsHYbFBy1XfMycNka Qr0n3SYJtq9tMrGnN+zz3nuhGRrRCBIBxqSeL0QJq7BE69PksXGphOkYTeEihneedT 4w0Qj3I7XgTfg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id CA37CC43157; Sun, 25 Jun 2023 23:20:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v3 1/1] perf: RISC-V: Limit the number of counters returned from SBI From: patchwork-bot+linux-riscv@kernel.org Message-Id: <168773522382.24181.12828652442172753351.git-patchwork-notify@kernel.org> Date: Sun, 25 Jun 2023 23:20:23 +0000 References: <20230505072058.1049732-1-v.v.mitrofanov@yadro.com> In-Reply-To: <20230505072058.1049732-1-v.v.mitrofanov@yadro.com> To: Viacheslav Mitrofanov Cc: linux-riscv@lists.infradead.org, linux@yadro.com, ajones@ventanamicro.com, atishp@rivosinc.com, atishp@atishpatra.org, anup@brainfault.org, will@kernel.org, mark.rutland@arm.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Fri, 5 May 2023 07:20:57 +0000 you wrote: > Perf gets the number of supported counters from SBI. If it happens that > the number of returned counters more than RISCV_MAX_COUNTERS the code > trusts it. It does not lead to an immediate problem but can potentially > lead to it. Prevent getting more than RISCV_MAX_COUNTERS from SBI. > > Signed-off-by: Viacheslav Mitrofanov > Reviewed-by: Andrew Jones > Reviewed-by: Atish Patra > > [...] Here is the summary with links: - [v3,1/1] perf: RISC-V: Limit the number of counters returned from SBI https://git.kernel.org/riscv/c/ee95b88d71b9 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html