Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3711142pxj; Tue, 1 Jun 2021 11:22:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdSuITgjAOXojn3FH3TR7BJ1YF//sB19ioKi3ZsTyr2kQBy+mToHtO6B9bamkUTSePtGlb X-Received: by 2002:a17:906:2bc6:: with SMTP id n6mr24416564ejg.256.1622571773936; Tue, 01 Jun 2021 11:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622571773; cv=none; d=google.com; s=arc-20160816; b=MBxZVbQxdFyFfhJtFLPdawgHxXKDJUr1ejuv+uzK4BS86GnV52zYANHMzgpc1Nv0Fc jHH5o3oVt0vEthXD9udglE9z3eWs7qy0pZeS+o9Yx5YKK357mIBXOrMy3/9kzHGUuQuL 2pt8XiwxxWwPnsugE+wAz1OTE+QQSy7cJCe8oIcmWSD2cy4IsXpLtlnm2852PjruqTvb KvRHt7u73W0Ngx8ZiqzoqY2K6dzxmLMztLhC26C1n4jVmYiyFQ1zerBbRFgPvSttCEQO LACXpeq1KvBhnQBje7ArzPEYYpDwyO/KoOdfNvGT6AiS+BTvRAqbzWNcNMO102wWAJkz 6mew== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F9lmeijfM6bALXzU9UbfUGEs4gyp+HBRR4k0ux31juM=; b=oX7syCxuSeP4yOUp7/XH1kdCLirn6h7Tjrx2h2ZuP9Er9Gw96a3YyxWI8h6tGvRzb7 JTC4+DFRKxDqIn5RhH8B2+BxMkleWPzOptQLM0F58IRINhbYWcBjqpcOBsLnwo4zfhog l1G4LinRajdwV6NfUHnTiFmxI5Heu5tlBUIlrA0Tst9fiFBKddltiKYY3Ymga6ZuU5K8 0M53GdM/JvAplWFGFaTlUzwe2xoXZrpjPSezq7m7pCdXdz7JGlIA9n7hZbGwPid+p8LI MazR98msy1g2Xeg95hrWKTr/KbU7g9lijsniG0mqGhZuJ4Kp8eIroKns7LpJnq0JfhIN Q1ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aQ4hUhTV; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si12793091ejt.260.2021.06.01.11.22.30; Tue, 01 Jun 2021 11:22:53 -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=@kernel.org header.s=k20201202 header.b=aQ4hUhTV; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234624AbhFASXL (ORCPT + 99 others); Tue, 1 Jun 2021 14:23:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:39346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234622AbhFASXK (ORCPT ); Tue, 1 Jun 2021 14:23:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 334EC613D5; Tue, 1 Jun 2021 18:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622571688; bh=2LkiZTd7WmnTPbe1jx3qQ01dv/8NESevXvihBHnGz2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aQ4hUhTV9yk7DpHXZZxe22oEyovRk43hL5EoCX/gf1kObhlDNTgJXPuCet0n+WpV3 i9Jk15r+opGUH/cD/5eYb6GqGljQz3PEk950ZDKoljiBThLMqBJwNWjZvfhF6j3K54 QhR9h4Y/XrhzD6X2hS4QWU4djF0u1P6NzTAF1klZ8u82+lnXP3KdFNDKssahHqQ+yQ 5Vnlm+WtG7KIl9mWq6N3Ag+VdsjqH3jNiI/F1P1MUtFi+i0g/2PoqAI8o08SVJMOjC DFqX3xasRXO5ygZhsW3MIPHrjUWS9KP9ijUcEm/NhAyI12IGiwkPJ/rxwI8LJaqceU +kzthHYM3qjZA== From: Will Deacon To: mark.rutland@arm.com, namhyung@kernel.org, linux-arm-kernel@lists.infradead.org, acme@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, suzuki.poulose@arm.com, mingo@redhat.com, jolsa@redhat.com, Yang Jihong , linux@armlinux.org.uk, julien.thierry.kdev@gmail.com Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon Subject: Re: [PATCH] arm_pmu: Fix write counter incorrect in ARMv7 big-endian mode Date: Tue, 1 Jun 2021 19:21:05 +0100 Message-Id: <162255342222.565985.6841867867771052763.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210430012659.232110-1-yangjihong1@huawei.com> References: <20210430012659.232110-1-yangjihong1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Apr 2021 09:26:59 +0800, Yang Jihong wrote: > Commit 3a95200d3f89a ("arm_pmu: Change API to support 64bit counter values") > changes the input "value" type from 32-bit to 64-bit, > which introduces the following problem: > ARMv7 PMU counters is 32-bit width, in big-endian mode, write counter uses > high 32-bit, which writes an incorrect value. > > Before: > > [...] Applied to will (for-next/perf), thanks! [1/1] arm_pmu: Fix write counter incorrect in ARMv7 big-endian mode https://git.kernel.org/will/c/fdbef8c4e68a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev