Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1243582lqm; Thu, 2 May 2024 09:00:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXsVp9LMqVuLk4e5aFW9wNFQCZc70DXV/Qm0opar1RO0C1M+N/CKmvO4ptG+i0cuqSLtt03XZe7BgvfkG3sD70aJyS26b9gOFutgG8iQ== X-Google-Smtp-Source: AGHT+IEEVxT+iqxNhwuF0Di1pBlFEwGXZvklZwtBqf87wq3RmGMShOEXwGumb1y79a7pXRQvgaXS X-Received: by 2002:a17:902:ef96:b0:1e2:a467:1b6b with SMTP id iz22-20020a170902ef9600b001e2a4671b6bmr73052plb.16.1714665631450; Thu, 02 May 2024 09:00:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714665631; cv=pass; d=google.com; s=arc-20160816; b=r3eSFccA7xr71Sls54gZ3njUrBswREg48HQI9aqBuyj9ql87z4+WwiH56UMmvOS4p8 7hrLBCFVybzkC98gMBUWg6pIgl94HJMmJeh4PEt4KKtFk5z2b/7Gg6y1z2T2AxVT4xAW ze46R/cgTS7Idlgw7NE4oo/LARTJkWt7aRpe1lBxDjkL2PLMyEpc1nWPQjzdYgOTwXrE 1UkfngL5LDMcJFbDpkv4OgAgq8EoRdCZ8vknGuM9L87RfiFkPuwGVt4hpuq0fP+jTXZZ NiiXS5QxuEAzZW+65Mu3nC13+1lVGcDceIinoO7FwhQfmupzyLp6eKQs5hUP8c7gpWZX ZcgQ== 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=81nJpfjJjER3prDq3FQRto26/eZdcTLefOtffAqrWNs=; fh=Xm/5ExiaKE8wXtSEIoqa9sOBGJVlTaeQUVQG6W+ntWM=; b=DE234+aIJalTABtKm7GF+YwWIMsS119sN4TawC6CXIMWEYaDkfzv8SbHrg0GVBj5fE DBX7sDiFUamq/Zv/Rb8mgfjVbDxh7thXA5Qb9BXzPvQ8EX/gMegJ7cNdIe048f6Rwijq j4G02QspUQIiwir7n6J+LFfF/Q+ggVEHMp0UnD7vEN31fxUKihtG5UwVYf7lwZfpCQWF PmNRdBE7LmcuzdQWYiv/F4mLD0ZVYb0OCwmlb5kY6qVPKWMj989DBO1ge3pfGBAtoqV5 yPW7JuU0me3gg2ER0AV+yMioLB5XQYus4UHp6mZEbPgL+vFNjaSbfTMwgwe3cih+bzuQ yN3A==; 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-166672-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cb5-20020a056a02070500b00607f473eff5si1224775pgb.275.2024.05.02.09.00.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 09:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166672-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-166672-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166672-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D29F82833A0 for ; Thu, 2 May 2024 15:58:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A03A715B984; Thu, 2 May 2024 15:58:46 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A25F1F5F6 for ; Thu, 2 May 2024 15:58:43 +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=1714665526; cv=none; b=q9DolCLkr5pVVSzIwKJXWvoXXRMCql48znmip7sD4bzAkbPQ5ugT1Dgn7VqwFiBctMxkFSc+SkYAT86U1H3z2KR4FIFdLueGu6tq/bjTt3miMRSL0QXIZLEgR8wupj3clKscczft4q5YdtZEXM4uH9HY1aNhgVAeN/1QlVemmUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714665526; c=relaxed/simple; bh=yyE+ZEdf8UN5xDxOi4JLEeKVEqMHLM/n9v4wAEl/cFA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jjCQ9b8WR92Ki+t1gLhalmxbDy4K96wi6M99lVKZANcsI6PE/ni1HpO/xDpToshmPt7TG6l0SjM3LP1jKctyrtvJZj1hcqHxq0MAKiPaiSP0eKdCjrbrMB3VQJ7PHFD/aESI9Al6EdbKEF/moHFkYJBFKABnF9cbW+qoaClL3lw= 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 56CC22F4; Thu, 2 May 2024 08:59:08 -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 E72533F793; Thu, 2 May 2024 08:58:39 -0700 (PDT) Date: Thu, 2 May 2024 16:58:37 +0100 From: Dave Martin To: Amit Singh Tomar Cc: Reinette Chatre , 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, David Hildenbrand , Rex Nie Subject: Re: [PATCH v1 28/31] x86/resctrl: Drop __init/__exit on assorted symbols Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-29-james.morse@arm.com> <47af4fef-35d3-4d88-9afa-42c1a99fbe07@marvell.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: On Wed, May 01, 2024 at 09:51:51PM +0530, Amit Singh Tomar wrote: > > > > > I think James will need to comment on this, but I think that yes, it > > > > is probably appropriate to require a reboot. I think an MPAM error > > > > interrupt should only happen if the software did something wrong, so > > > > it's a bit like hitting a BUG(): we don't promise that everything works > > > > 100% properly until the system is restarted. Misbehaviour should be > > > > contained to MPAM though. > > > > > > > if "resctrl" is nonfunctional in this state, then this comment[1] here does > > > *not* make sense. > > > > > > "restore any modified controls to their reset values." > > > > Can you clarify what you mean here? > > What I meant was, What's the rationale behind restoring the modified > controls, if user is going to restart the system anyways (in order to use > MPAM again), but later realized that it is needed so that *non* MPAM loads > (user may still want to run other things even after MPAM error interrupt) > would not have any adverse effect with modified controls. > > Therefore, taking my statement back. Ack: we can't force the system to restart without losing data. Really, the decision about when and whether to attempt a graceful shutdown or reboot should be left to userspace. But until userspace does shut down the system, we do our best to behave as if the broken part of the system (MPAM) were not present at all. [...] Cheers ---Dave