Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2277342rdb; Thu, 21 Sep 2023 13:49:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+gSERrkc37KBNEzjhAc1dpez/69zg/k/AMQa9ltHxrl3/PPYJk+hdNKfZ6Semq12avZTl X-Received: by 2002:a05:6a00:15d0:b0:68e:3bc8:17d1 with SMTP id o16-20020a056a0015d000b0068e3bc817d1mr8064211pfu.29.1695329351765; Thu, 21 Sep 2023 13:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695329351; cv=none; d=google.com; s=arc-20160816; b=moBfZjaoo4TOqGo9KFP2OMXbCDe8tbWMv7Fcy8aOVr62q1RP50zF73zfKi3z45O0wy YKZYbTV+ItDO6+xQ4uNbKumsVE7dtxp9UTLJ6kTWD7IBIoflbeGD5WKKcGA/9wXQgmF2 lNuAZxuVQhkbNEoqDQNdVMmPlb974nF8jyrHiLJfB2BVCdp9NRckT09/ERwQfKaFrRrk rl9y6wMQUt+P26DfKddEOPXtLmCGLQMO9DtAt7hx/3+b0o46qzorSOHmmGXjhLMeh0/K TEVtLiGExYF00WyknZBRb1XwvFyhasD1P79Z+iT9TUMXj1/JlAa6Os4GpQvUYvJRoiwk 54+g== 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:date :message-id:subject:references:in-reply-to:cc:to:from; bh=o7jxg6KSKqgU/WrR1clik8WjYkUcKm5K8Hzq6GIxMps=; fh=wlZymJHtvJRYm7rKXYORWSApOIa5RVETU5VXpsAEEcA=; b=L5sqXe9RVZvsVMNhi/0CYW0nOpAcpvSU64sKnF3qh9+DAKTlo8OKo3ksIrDuucdOHr EZgoB/+H5TLz6LTluffcz5DpOWkLJtGgdwIzCjd4l5QBFKY8g7UIjPn6sSMI9lEZ9jWF alAzTInZuZ/0QHa3SyXAKSlo4MlOW1pBC3JL9/fX5eIuaof2zOQDATcriy3epclIK8/H 6Cp1yiCypqPOTzW9Y0S8CA7xzvkGWmH31vGCv39yx3T2Mx1zy8+p/pdfO7hyVEtw5MK1 0pRgFikXt1ESibxU7DEGSdtukNaeCHFn+Exh89CBJ4OypeZf56rgEk9t4wlWt62MeSsn fr8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bu6-20020a056a00410600b006910a45a23bsi2238783pfb.366.2023.09.21.13.49.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 13:49:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 14A5C82FABE3; Thu, 21 Sep 2023 13:35:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbjIUUfy (ORCPT + 99 others); Thu, 21 Sep 2023 16:35:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232127AbjIUUel (ORCPT ); Thu, 21 Sep 2023 16:34:41 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FFBB89208; Thu, 21 Sep 2023 10:39:36 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4RrqlK455Tz4xNq; Thu, 21 Sep 2023 19:26:05 +1000 (AEST) From: Michael Ellerman To: Kajol Jain Cc: atrajeev@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, maddy@linux.ibm.com, disgoel@linux.ibm.com, linuxppc-dev@lists.ozlabs.org, Krishan Gopal Sarawast In-Reply-To: <20230825055601.360083-1-kjain@linux.ibm.com> References: <20230825055601.360083-1-kjain@linux.ibm.com> Subject: Re: [PATCH] powerpc/perf/hv-24x7: Update domain value check Message-Id: <169528828843.872767.14831793424287961680.b4-ty@ellerman.id.au> Date: Thu, 21 Sep 2023 19:24:48 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:35:56 -0700 (PDT) On Fri, 25 Aug 2023 11:26:01 +0530, Kajol Jain wrote: > Valid domain value is in range 1 to HV_PERF_DOMAIN_MAX. > Current code has check for domain value greater than or > equal to HV_PERF_DOMAIN_MAX. But the check for domain value 0 > is missing. > Fix this issue by adding check for domain value 0. > > > [...] Applied to powerpc/fixes. [1/1] powerpc/perf/hv-24x7: Update domain value check https://git.kernel.org/powerpc/c/4ff3ba4db5943cac1045e3e4a3c0463ea10f6930 cheers