Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp429045lqg; Thu, 11 Apr 2024 07:16:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+rYQ7JOSiPDuhCBuUyA9kJu5kibZ18TL9Wpn3xaQ85teGBc7E7VdrwdL4EBGGMuhEVtbLmdHA1LcCVz8e1fmZQrGX8zyucFJeWNBEpw== X-Google-Smtp-Source: AGHT+IGKo40CljnyWN3Ch+/KXZNXJjTOY0lVyqxbPGp4OeVHh3L2IaYrKVPhTu0S392phoRgOl0f X-Received: by 2002:a17:906:b259:b0:a52:2234:6898 with SMTP id ce25-20020a170906b25900b00a5222346898mr1288879ejb.5.1712844990776; Thu, 11 Apr 2024 07:16:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712844990; cv=pass; d=google.com; s=arc-20160816; b=JexcLbSCLCxMzLqYNAgPaAarYLEJd+j3PEUHwuxMT1r1P9QTolAZPR8apMMbhfNeg5 /LrwnZB82QyIJKIUNdpEEntruCFVguORzGhAv48iRRtvdanQQrBPqwBwp+lc5zthD4CO W4ebNN586u3CSiOT4XtyWNg7f/XguvZBHv6/JXSj4CSSqIdskle2XR6zrcvcbNW7oCxc QJtLFB6IbHoEuIEnR0K/BVGQcFI4W6qoPhsvao0GfFJpxb1IAK1XKVfL4i7mvKyqR89j GMmNtKJm4i4pNjR+J7x8dd4x7i7EhY05ShoycW6H2J8JpgZOGN+H8Yj7VCYGUvnV6FYY I5eA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=/r9ojdHvsmBMxa1K2UEfp+LrRQFph7+Afmxt22zcgQY=; fh=QpfXcl1MWRNwK/PrSFDaf8vyLNOqSjtq+qtJ/l97qlo=; b=nbf1GFPJZAOWaXEeipCWC5UDh2etFY5OcVNl/epyBBWlVqtFM7aPzGWdhjkzWU3gzJ I+U4L795tW/q9u5ScplgiuuN1PQrW3MwGNHZWn7dvMBEpDIrvMTMASY471G98Mj5BoG4 RBhnYvvdzlF6VWlgEq8RPW2KFJHyk71AiUvNBmpUPJvP5NCzXa3bCZnx9lvnoEw5852c 1WJO1tUYHpHsRyH2EhtqX0e2/W1eS0Wzb6+PHJsjkOYr5Ko/e8+IdrQQ9HQx5CSf370B ejW39uKNyDgFv9YoOdzk6Owfdt8T3Ulfz9UB5uIp/OrDHhVWHhu4jl7s/V0aF2i0PGUB MWUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-140618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140618-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lf7-20020a170907174700b00a51ca8f9828si784578ejc.231.2024.04.11.07.16.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:16:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-140618-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140618-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 804061F22303 for ; Thu, 11 Apr 2024 14:16:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F66B14F108; Thu, 11 Apr 2024 14:15:31 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3C6D14B09C for ; Thu, 11 Apr 2024 14:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712844931; cv=none; b=QNozCxNdorbUrrFMhajqkCgVlsT21wcW7l39i/op9D+ozftA8X6oUAG7a9oApdkQDi+d53o1YptDHibeXCOiSp0CBKpVjIMidlIkInZkURUh6IAgf7eaHJevfvNGf+oBsTrl1RfLprPS5xvokHpVKK64OToPUhKdZJW3OsrMUGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712844931; c=relaxed/simple; bh=xYTEtJd3jX6lHoibME6XnWLIsyGQx9FKXlixpmOQ0D8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=puqqNcACXkVOs5RGHzPULZVoHhj1NljP4dYDwaWCKHX85Cf9vtIGPMImLlQyRf95d87oVcUYG8QMOTlddXCYCxGgrvv5bN79Ig70VBAKt9H0sPJJEjhPByKU0tv+GrW8+J2glRmTJf8q39+wJHVuDeV3RKuvvf3j19pI9gSwqwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 95ED2339; Thu, 11 Apr 2024 07:15:58 -0700 (PDT) Received: from e133380.arm.com (e133380.arm.com [10.1.197.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 48E393F64C; Thu, 11 Apr 2024 07:15:26 -0700 (PDT) Date: Thu, 11 Apr 2024 15:15:23 +0100 From: Dave Martin To: Reinette Chatre Cc: James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie Subject: Re: [PATCH v1 11/31] x86/resctrl: Move monitor exit work to a restrl exit call Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-12-james.morse@arm.com> <92187846-374f-4b45-865e-543ba198b6b9@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92187846-374f-4b45-865e-543ba198b6b9@intel.com> On Mon, Apr 08, 2024 at 08:19:00PM -0700, Reinette Chatre wrote: > Hi James, > > On 3/21/2024 9:50 AM, James Morse wrote: > > rdt_put_mon_l3_config() is called via the architecture's > > resctrl_arch_exit() call, and appears to free the rmid_ptrs[] > > and closid_num_dirty_rmid[] arrays. In reality this code is marked > > __exit, and is removed by the linker as resctl can't be built > > resctl -> resctrl Noted, thanks (also, there is "restrl" in the subject line.) > > > as a module. > > > > MPAM can make use of this code from its error interrupt handler, > > a later patch drops all the __init/__exit annotations. > > Reminder: > https://lore.kernel.org/lkml/85f8756a-23a0-444e-b37d-a7817b600f46@intel.com/ The "Drop __init/__exit on assorted symbols" patch speaks for itself, I guess. I think it's probably sufficient for now to comfirm that this patch is deliberately not changing the annotations for now. Does the following work? --8<-- Since there is no immediate need to change them, leave the __exit annotations as-is. This will need to be revisited as and when there is a need to call these functions other than at __exit time. -->8-- Cheers ---Dave