Message ID | 20180707211656.2920-1-stefan@agner.ch (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B24F4601C0 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 7 Jul 2018 21:17:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FF4D288D3 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 7 Jul 2018 21:17:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90037288D7; Sat, 7 Jul 2018 21:17:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F4234288D3 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 7 Jul 2018 21:17:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ETSBgJgUekoFUH2PW8hBbru+N0kuTEtegev8SxvZc4c=; b=ccc MDSUyhgA4fgMMzIEUKfKsCSlXHSh8BM6NUfEDG/3Sv7Dh/H6oRqTt5vALzX29CKCB7aFmUv2JP0nZ bavwauVMVgm/onwd+PQ/aSwpfcbWUvs0iTHF9pPpXGPGi/LrSSArqcMZks4dDxEVylESJimLWmEID i1SqsabSHbtIqKxIpiG7JjUMPBg1IzFzaLMD+DWw7QmWJ41NWDFqG5LT1ZyeX1hmzUoSaDTq5oJnF PWYROSjqo2QiuZnFMQBCoEnNpqYAbFe2TOpowGtGW3W4VFzc8W6Rt7xlsPb3RObP2bZ5BeS6Xxs6x x/J4awKsdZ7CKD4wu0BlAfjZ44FYCEw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbuaH-0008CH-2b; Sat, 07 Jul 2018 21:17:37 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbuZy-0008A9-5T for linux-arm-kernel@lists.infradead.org; Sat, 07 Jul 2018 21:17:22 +0000 Received: from trochilidae.lan (unknown [IPv6:2a02:169:34d6::127]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 88B025C1056; Sat, 7 Jul 2018 23:16:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1530998219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:references; bh=Z5oRubTtJit946mXozw/XxbbfK/cJ2WUdTqGrd2GL+A=; b=DDUuKz+Mn6AApCXv6XDZWj7dsUaQ8SdqiuByaPbwpKl9hYUKKS9ZnJPojs4K27AooP8Nat EaHWQCGi0bHIwSfsSD6iL+8O5uyqlTuVJs1J39OcMFsyPtYT702bzvl1aT5w5RUMwFlPok 6dNYeOP4HV9gZEFZ/lHNp0LEGoOnQ7o= From: Stefan Agner <stefan@agner.ch> To: will.deacon@arm.com, mark.rutland@arm.com Subject: [PATCH] arm: perf: prevent unbind/bind via sysfs Date: Sat, 7 Jul 2018 23:16:56 +0200 Message-Id: <20180707211656.2920-1-stefan@agner.ch> X-Mailer: git-send-email 2.18.0 X-Spamd-Result: default: False [-2.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_SEVEN(0.00)[11]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_CONTAINS_FROM(1.00)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; ARC_NA(0.00)[] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180707_141718_348590_E5BBD2EC X-CRM114-Status: GOOD ( 11.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: peterz@infradead.org, linux@armlinux.org.uk, acme@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, Stefan Agner <stefan@agner.ch>, namhyung@kernel.org, jolsa@redhat.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/kernel/perf_event_v7.c b/arch/arm/kernel/perf_event_v7.c index 57f01e059f39..5a5116794440 100644 --- a/arch/arm/kernel/perf_event_v7.c +++ b/arch/arm/kernel/perf_event_v7.c @@ -2030,6 +2030,7 @@ static struct platform_driver armv7_pmu_driver = { .driver = { .name = "armv7-pmu", .of_match_table = armv7_pmu_of_device_ids, + .suppress_bind_attrs = true, }, .probe = armv7_pmu_device_probe, };
Unbinding and rebinding the ARM PMU driver via sysfs leads to a warning followed by more errors: WARNING: CPU: 0 PID: 217 at kernel/irq/chip.c:1034 irq_modify_status+0x150/0x16c .. genirq: Flags mismatch irq 19. 00010c04 (arm-pmu) vs. 00010c04 (arm-pmu) hw perfevents: unable to request IRQ19 for ARM PMU counters hw perfevents: /pmu: failed to register PMU devices! armv7-pmu: probe of pmu failed with error -16 The driver is clearly not designed to be removed. Disable bind/ unbind for this driver. Signed-off-by: Stefan Agner <stefan@agner.ch> --- arch/arm/kernel/perf_event_v7.c | 1 + 1 file changed, 1 insertion(+)