Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2076755rda; Tue, 24 Oct 2023 11:31:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTCnZHtnoo/mcIN7n4Ae2YPfk2agwTLn01owIsK1pKVu8HJZ9pFW/WXMp3gVJGm9MVpJm3 X-Received: by 2002:a05:6a20:12c5:b0:17b:1f76:86ee with SMTP id v5-20020a056a2012c500b0017b1f7686eemr4689573pzg.16.1698172278263; Tue, 24 Oct 2023 11:31:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698172278; cv=pass; d=google.com; s=arc-20160816; b=Y9ShTno/tag8pMLoT5QilTtnK2RZK8JBzOSJObj8FQDqi4Y0Gh1mQHUevSlGIeVHii 3TSnXNoLZPQnZuhSLjK86AVmJSUFwUjC81QRZ2I7IciOFd/vV1p5nPQQh4l926tIfFue q9hxtbMBQ1jh/V1MQpNCwKzv0/7Ubwxg1GDznIYWcMudLjRw5klL5QuRPp0RbPRNGQDn FTggJZPxtVEd7I4WMLupVHjBtgSWb8NddixAje2SUm6G/vywoCfjVreyqAVRzoN050qv gLSjwe+rm3e/4rWYJBM+/aBdxkVcs9UKQtrWgfQwW59+wM90WLL4DePuNRN6H/x/1tBQ YOFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=Iw+x/zAlPQ9632uJkcJFojF3VCQN2SsFx8Nynr9+5iE=; fh=iuWpn5/iCKajBtCiFY0kybiLx7kkvq/GCC9wrAdUIO8=; b=Y34nA0ehAg2a0vDQKHoli/xw93s9g1JFMvWp3MMcvIKPeMCzOrFNMe1MZV4zdAddOQ JvbrSSJAaPXdbwvpTWs9j1LDk6BAtAnZSzZMOSFaAxxLFNKYEaQa3xigSPzck3plsayv 6js67oC+ILxdpe670pYiiu4q04wDzcaxhrtbAe+9KqCEcJu1r8jA7kAMWx5vx4YdmSV/ 5eqZz94XYSTauJUS9kUBl7UwnhoAMjFstSrIKCo/hi2NrhFjifDuOlMSxSBpkUxSEO5g Z3/zu2V6dNeUvHJcuFmZjxkHYNL3SPHDMSLqPuATBu2WFnaKL7PE7IkRITmBmIj11tUI pMMg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=g1CEeXOB; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id 187-20020a6300c4000000b005ace065e52csi8907964pga.336.2023.10.24.11.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 11:31:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=g1CEeXOB; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 795EC803D8DE; Tue, 24 Oct 2023 11:31:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343871AbjJXSbL (ORCPT + 99 others); Tue, 24 Oct 2023 14:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344120AbjJXSbJ (ORCPT ); Tue, 24 Oct 2023 14:31:09 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D6EA129; Tue, 24 Oct 2023 11:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RX8NQ/yzhVOcK6Hs4WvBMosBHcxApIiCZTCGTzRegSVDo9vyu8O/XQHS+xpoNaIOuNJZq7cncwbBNdOiTfMsHf9ySKBczMdLvdQ4jfwsGKYW23hB+PY6lb0Pp0koEorhWYzoJdZhr5bffhr2oKDeJs2nB7sE7H88iJDetA9ITxLXUVmuKqCUjZcIjMx70f88sfSpNMwOp4tMctbQTj3AK7lC06TehlpCv6zbRQ/7SpIj28cLmPS+6H2nWdWr0gupZqeP4fRo+waZ/A1NzdSSuALOy4XShQTGPoUIlAQf8JDf4TuZOk3kXZC3X9QRGi/eH0Z9Rt5UTVSgWnGKhaNLKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Iw+x/zAlPQ9632uJkcJFojF3VCQN2SsFx8Nynr9+5iE=; b=dx6raeZi7pdz6jS43Sx7xThRBo7/qjWnwnU82A3fJMdUD5EQvOSbDAbiIeeIWIFDmJLl57DTJ+eHpf5Agv0QPvUBvAkCpzsUzyg2liRR1tzYWGbKhLfq07DMdkQ3vCesUTY3rr++K5HeYLFMOKKwO+m4XA0GJIFkntWRGaF0MFWw3++MaERgIOZHUOjTORJk9jOMG8dfXhenegJh6QL8hA36pV/j6Ze24+iXzsVcHXncimnSYn9tj2Ivtv5QzZ9oW49caFaMCkT9NJKqoywjdciXO1qqa0b+cKgBVihGTv4FuIeJ8bQZkgW104pE9kmKWEXO7a027t2QDplVuNnTHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iw+x/zAlPQ9632uJkcJFojF3VCQN2SsFx8Nynr9+5iE=; b=g1CEeXOBctyR3mrH0+NTKcERz/qCGEqzHGXxT6/Vzrg/DuXxUlWZHkSfE4y4DixuLiXsFtHkITCNgJmo9M8hZvFhTbzdD0c+hK/57IXZh+a/lt5Gsew/2lYJRKRJUP5Toh/TYtCsKXify8SrMl3+ABMifnScfKauSDcYn/L458w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) by SJ0PR12MB5456.namprd12.prod.outlook.com (2603:10b6:a03:3ae::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Tue, 24 Oct 2023 18:31:03 +0000 Received: from MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::83d7:9c4f:4d9b:1f2a]) by MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::83d7:9c4f:4d9b:1f2a%4]) with mapi id 15.20.6907.022; Tue, 24 Oct 2023 18:31:03 +0000 Message-ID: <0022df64-b7f5-43b4-87ed-5df5d47c5c6a@amd.com> Date: Tue, 24 Oct 2023 13:30:59 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] perf/x86/amd: Don't allow pre-emption in amd_pmu_lbr_reset() Content-Language: en-US To: Ingo Molnar Cc: Peter Zijlstra , Borislav Petkov , Thomas Gleixner , Dave Hansen , Sandipan Das , "H . Peter Anvin" , linux-kernel@vger.kernel.org, x86@kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org, pavel@ucw.cz, linux-perf-users@vger.kernel.org, Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter References: <20231023160018.164054-1-mario.limonciello@amd.com> <20231023160018.164054-3-mario.limonciello@amd.com> From: Mario Limonciello In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DS0PR17CA0013.namprd17.prod.outlook.com (2603:10b6:8:191::11) To MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6101:EE_|SJ0PR12MB5456:EE_ X-MS-Office365-Filtering-Correlation-Id: 2577aea7-c0e7-41d7-9e83-08dbd4bf60c1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8Fj4X0Xyi2uGeoAxj/GeRoY149kJeKR48cQXBsuF7VX/TkDAtTUu252Seicz5HKgNwPFdwj4XEl/UpwxsqAAhNbazpGWgPyqjzIMwvgB/oRv7O/+Jz6fjyf5JhuU1udB2OE1/dY5hJjDQp47MvqJ+xoKyIsoSxnofDgbTlni4hRzuzpiGFO00lQPqazKBjjnMAaCQ9O+uBGkmXdQxyrSmxgANSSdetgdbjhRUOO4ChNfxwvUvvr6Le788pVGUAYUkOpNqG3eX4mRrJ6EmgQgHZQwBIRfZxijh58vXP6KAEMFIxNPuQgy6hkIfhEpaBbHjx8C2UqyZPUUsk64sPauu3OdNEpQnpJlJiIhOYzpX/e7Qg59miLdopfgI0avwBsc+63H/iCyd7KDf8FV+uke2b+yqPn2PgziwGniERoW0aC/NvW3h32rXBPiGaqWbWibb93PVAh8F3nbJnKz2WISBIxO7K/3AdCSxLlXXk1YYwuEs+OmcbjGfMsKdVdwHeE0lqJMd/Ip4iET6L5ssVI1/W7PGw4h9DS8IFrF5kF6I/e+7l9EOgjL/qfDpmjEa2z197vJOIonxn3qHd7gD/HE9YA1goZMQ3lhrQYyjLg2zM3s0oS4Ounp5BjR5eQwevkIgK8BZay9xMGRIruhVVCJ3Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB6101.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(396003)(39860400002)(376002)(366004)(346002)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(7416002)(2906002)(4326008)(8936002)(44832011)(8676002)(83380400001)(6486002)(53546011)(31696002)(31686004)(41300700001)(5660300002)(6666004)(6512007)(6506007)(86362001)(6916009)(316002)(26005)(478600001)(2616005)(38100700002)(36756003)(66946007)(54906003)(66556008)(66476007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OFU0bnFLMVB1RnpJZHc2V2QvczJlS21VS1RvZElBNnMzRzdKb0Uvayt5OWJa?= =?utf-8?B?R0dJbkN0VEJIcko1WFJ4RWFXVG1JeXN1dW5vcHluRnY5VWhidk1Lbm1IOEMw?= =?utf-8?B?b1Y0eFFnazMwVmlVWkwrTGxiL25wODAySmt0OS9URmpaTmNHV2hvOTdkTElJ?= =?utf-8?B?Mm1sSEhuTWo5UHNYczFCdjhhcFl0TzZEekcvZmlFdWh0YmMwa2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dLQVd3OExWUm5kVndZbk1rd3NTM0pyZ0Z1TWx5dW5R?= =?utf-8?B?VVpYVm9lY0RqQkJLKy9XVmRyQnFyWW1xV1FHYmlKeUFCSStvQm5aRGdiUmE1?= =?utf-8?Q?S+N0p6dXC37xGipGCn59ZC5+v?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2577aea7-c0e7-41d7-9e83-08dbd4bf60c1 X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2023 18:31:03.2449 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LbdfaiaaVur5ldaNSoihWHbwEHVGW0nuEPXlfm5IEKrXxv3sgKMaoMNdMWuWIl1yq6xHmFc5fYSkVaoXnwPJlg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5456 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 11:31:15 -0700 (PDT) On 10/24/2023 11:51, Ingo Molnar wrote: > > * Ingo Molnar wrote: > >> >> * Mario Limonciello wrote: >> >>> Fixes a BUG reported during suspend to ram testing. >>> >>> ``` >>> [ 478.274752] BUG: using smp_processor_id() in preemptible [00000000] code: rtcwake/2948 >>> [ 478.274754] caller is amd_pmu_lbr_reset+0x19/0xc0 >>> ``` >>> >>> Cc: stable@vger.kernel.org # 6.1+ >>> Fixes: ca5b7c0d9621 ("perf/x86/amd/lbr: Add LbrExtV2 branch record support") >>> Signed-off-by: Mario Limonciello >>> --- >>> arch/x86/events/amd/lbr.c | 3 ++- >>> 1 file changed, 2 insertions(+), 1 deletion(-) >>> >>> diff --git a/arch/x86/events/amd/lbr.c b/arch/x86/events/amd/lbr.c >>> index eb31f850841a..5b98e8c7d8b7 100644 >>> --- a/arch/x86/events/amd/lbr.c >>> +++ b/arch/x86/events/amd/lbr.c >>> @@ -321,7 +321,7 @@ int amd_pmu_lbr_hw_config(struct perf_event *event) >>> >>> void amd_pmu_lbr_reset(void) >>> { >>> - struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); >>> + struct cpu_hw_events *cpuc = get_cpu_ptr(&cpu_hw_events); >>> int i; >>> >>> if (!x86_pmu.lbr_nr) >>> @@ -335,6 +335,7 @@ void amd_pmu_lbr_reset(void) >>> >>> cpuc->last_task_ctx = NULL; >>> cpuc->last_log_id = 0; >>> + put_cpu_ptr(&cpu_hw_events); >>> wrmsrl(MSR_AMD64_LBR_SELECT, 0); >>> } >> >> Weird, amd_pmu_lbr_reset() is called from these places: >> >> - amd_pmu_lbr_sched_task(): during task sched-in during >> context-switching, this should already have preemption disabled. >> >> - amd_pmu_lbr_add(): this gets indirectly called by amd_pmu::add >> (amd_pmu_add_event()), called by event_sched_in(), which too should have >> preemption disabled. >> >> I clearly must have missed some additional place it gets called in. > > Just for completeness, the additional place I missed is > amd_pmu_cpu_reset(): > > static_call(amd_pmu_branch_reset)(); > > ... and the amd_pmu_branch_reset static call is set up with > amd_pmu_lbr_reset, which is why git grep missed it. > > Anyway, amd_pmu_cpu_reset() is very much something that should run > non-preemptable to begin with, so your patch only papers over the real > problem AFAICS. > > Thanks, > > Ingo In that case - should preemption be disabled for all of x86_pmu_dying_cpu() perhaps? For good measure x86_pmu_starting_cpu() too?