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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 908E4C74A5B for ; Fri, 17 Mar 2023 20:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=V4v2aV3KPhprBWWd/0YjvpCoTv2o7aenpeY7KHrgHq8=; b=BaO1YMamG6FV7I7fCTVOGe2hum E8X2eWJ8OwGPqQyOF0hkAx8pg4+sYkyv3Q4dk/HPfhTNE1vhDyW5MfkPHVLjNsqebeZoOomS8sE+b W80xBIRuxB0jYTbGrrIV002fNIqoYYPiDye51wWvF8iDQUGo5M1uIqU2TSUTv2ah7xkRkyY4MoWZe EOTuagbxL7/IZvn/bI0rBdgtFv9RVjrbvFdIUGXd2CRmVNLZWr9lgc1IkAac4AxwxBcqAYJFb9E7f hjWe7Vju/yxj+JzeVrx3kHnWpNSh/mLUq7GCOQzCs8Kk+bjpSHzbVAuHIjUjyaglCJ/LldLO4sCjy tS0Qm6Qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pdGzg-003LSD-2D; Fri, 17 Mar 2023 20:48:08 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pdGze-003LRY-2t for linux-arm-kernel@bombadil.infradead.org; Fri, 17 Mar 2023 20:48:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Cc:To:From:Subject: Message-ID:References:Mime-Version:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=bzLjpALMNgZO7D58TEpXLTW3ZAq+0ArtuotO+lK7MeI=; b=YNABMxiwfU3fA9izZPXlxvwWP7 UCLVC+zJqx9XsVkt1Z3mi4cqEd2YSn39DNP35NO3dQYM0ONpIXLswn6yAMpIJ6ue+qakdoKU5f6ih Zta7L/vsF4I2GbdE4w4LpgXp9f/AjiU/sJAfCQICKMAP3R36Th8mZCYe1C8JMLNAbRY5sauF40w5T c7Thfk25ErjIrX5CfzjqhiSvrLbZkLK+UTYj92wdFdVp/sPcEye5Ani/6Cynog003VPUqKS+PQZNh 6EIYX61LDDKeBbZX8gmZLip0vkD26ETHrd3d4JajnjIB+JH7pdOzM4SMzMDrw4Cfy1Kz9KdhNhZTV /DGrGuiw==; Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pdG6C-002tPg-3C for linux-arm-kernel@lists.infradead.org; Fri, 17 Mar 2023 19:50:51 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-54196bfcd5fso55454787b3.4 for ; Fri, 17 Mar 2023 12:50:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679082643; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=bzLjpALMNgZO7D58TEpXLTW3ZAq+0ArtuotO+lK7MeI=; b=rfDE15TqBibmTXBcKQLshSEj4c6MwqUGxMquOL0OuWRBYtGNLzBp8EE5cIbjyXxbRX ukRcpP1Wfdp7D7qmGxMa7oLQdH34lzLP9g6O1OToXRqSwo0uaVAIL91sp7hL/FyOL+IR EYeYOPg16SxhFexw2qhP1MszVnslWyhD7gvV4faQmDYs/G2EkHE5uUEEwYgK+6KCsn36 8Z5QorSBDI9KtAxdoIaVBFKPz5RRO+mCmbmdX67tnvlYglVv+lu+suEwbHDH4pPoXlKa aMj1juzDu3StwVf4JmKr4iYJBtjmhmL6DKEhwTylpdahoarWAzq+aVp9YqviLI9YapPb ctxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679082643; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bzLjpALMNgZO7D58TEpXLTW3ZAq+0ArtuotO+lK7MeI=; b=T1MyiyOfyjuO2An58qOT8XHUqCtdRr27jKrvctt8w2IempIR8Jm1tp78x1ddZWdd1s vdSB0VloMxrFpjqBG6LG2qYC/j5MmFLKU2oDi4O1+ULXyLJ1MR5SCIEhWisz1IDj+9yJ tRMlXYKfuhgqt4UVrlGQEptHZFHzComy3+BlsYx/cH9KybXyt7KEabzB7soMmhwIUx6T 28wKHh7jeO+17+2KkjFjpKYAQu90zInvEcwBFnFLa6UZcCO8S6wyIYIP1NmcWEfjNkQZ yEh549+UIngwfZ1dhLW55gLxArqXP15A+G8wYmrFlFBSdv1K24AH4lI0Jx1ckrwOe7S0 /TEA== X-Gm-Message-State: AO0yUKWH813iTNhR9PL+Kcn176j3B1cOL4H80u6a3XNPFkgc79Akwxny J1hiZzoK1fMn4bISXdH/vTkXRENEZqscNG0= X-Google-Smtp-Source: AK7set+m7P9XPq+3Ux7nA0IYcb2cZgCLFWfZ4IOd9qnHlpeaYU67uI0KBzpA9cBUep4TzOcEY2DLbdhoLgSHnk0= X-Received: from zaidcloud.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5325]) (user=zalbassam job=sendgmr) by 2002:a05:6902:100d:b0:b51:9eff:ea80 with SMTP id w13-20020a056902100d00b00b519effea80mr473731ybt.6.1679082643007; Fri, 17 Mar 2023 12:50:43 -0700 (PDT) Date: Fri, 17 Mar 2023 15:50:24 -0400 In-Reply-To: <20230317195027.3746949-1-zalbassam@google.com> Mime-Version: 1.0 References: <20230317195027.3746949-1-zalbassam@google.com> X-Mailer: git-send-email 2.40.0.rc2.332.ga46443480c-goog Message-ID: <20230317195027.3746949-6-zalbassam@google.com> Subject: [PATCH v4 5/8] perf: pmuv3: Change GENMASK to GENMASK_ULL From: Zaid Al-Bassam To: Jesus Sanchez-Palencia , Russell King , Catalin Marinas , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Marc Zyngier , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, f.fainelli@gmail.com Cc: Zaid Al-Bassam X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230317_195049_064619_A9BA3DC3 X-CRM114-Status: GOOD ( 12.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org GENMASK macro uses "unsigned long" (32-bit wide on arm and 64-bit on arm64), This causes build issues when enabling PMUv3 on arm as it tries to access bits > 31. This patch switches the GENMASK to GENMASK_ULL, which uses "unsigned long long" (64-bit on both arm and arm64). Signed-off-by: Zaid Al-Bassam Acked-by: Marc Zyngier Signed-off-by: Marc Zyngier --- drivers/perf/arm_pmuv3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c index 2cab600af4fd..fc8ed3cd0330 100644 --- a/drivers/perf/arm_pmuv3.c +++ b/drivers/perf/arm_pmuv3.c @@ -489,7 +489,7 @@ static bool armv8pmu_event_needs_bias(struct perf_event *event) static u64 armv8pmu_bias_long_counter(struct perf_event *event, u64 value) { if (armv8pmu_event_needs_bias(event)) - value |= GENMASK(63, 32); + value |= GENMASK_ULL(63, 32); return value; } @@ -497,7 +497,7 @@ static u64 armv8pmu_bias_long_counter(struct perf_event *event, u64 value) static u64 armv8pmu_unbias_long_counter(struct perf_event *event, u64 value) { if (armv8pmu_event_needs_bias(event)) - value &= ~GENMASK(63, 32); + value &= ~GENMASK_ULL(63, 32); return value; } -- 2.40.0.rc2.332.ga46443480c-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel