From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2D643D667F; Thu, 30 Jul 2026 11:21:51 +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=1785410513; cv=none; b=MUOsGN7nCp4PQqQXVYzOXfY9FUW9HcliJqvPKaPpzqfSYnwhf1/s65jN9mxdD2zxywCw0T0gDCx1OL5wNBxf2vySxoCypjm2wHSMbKTF9HrpB67qPWrpiJAdmF2uTf4q8od+4xCBfGYuQ37nxyXysbuv5t7dVlZXB42jObqbvDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785410513; c=relaxed/simple; bh=YKpCvtPF4KfO8eYyhMxD+9bZaFC6vrQrsW+ruC7lWjE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qb5mzp4V4zvfaHz6qmDnPB0OlSuKFlMG7haz7CL7KL0zJuEXmj0QNLAqMM9hNICJKXEh+5hFPshZfUXDf2dCZ996+qn/43v26nm02XgVm9uF6nu/17054nQzY1xVH0VfthVOW7LXl0kDIS92fCQEnX8KqUvnPF4QmxLrf0yA3YQ= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=X+H0KikV; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="X+H0KikV" 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 334231684; Thu, 30 Jul 2026 04:21:47 -0700 (PDT) Received: from [10.2.212.8] (e134344.arm.com [10.2.212.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 012433F763; Thu, 30 Jul 2026 04:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1785410511; bh=YKpCvtPF4KfO8eYyhMxD+9bZaFC6vrQrsW+ruC7lWjE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=X+H0KikVMWyxHksz59sjNwhJ9Q6+8d3ILARtjn6qiNODWJ1G9TYrrXMaUeq4ypXmN 4FQWhc9bIY69uVVsbK+Upes42jfLWFU8AFr99h3q6bBXerJPYWnfdc7qlaIuMSs418 qBGhAp7zsJ3s/m5d3n9hTQDychOFS6O3w408/ofI= Message-ID: <5e5e9855-1e36-4c73-ab36-98c0bafa3225@arm.com> Date: Thu, 30 Jul 2026 12:21:47 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Thunderbird Daily Subject: Re: [PATCH v5 02/10] arm_mpam: propagate MSC access errors for hw_probe functions To: Andre Przywara , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Catalin Marinas , Will Deacon , "Rafael J . Wysocki" , Len Brown , James Morse , Reinette Chatre , Fenghua Yu Cc: Jonathan Cameron , Srivathsa L Rao , Ganapatrao Kulkarni , Trilok Soni , Srinivas Ramana , Niyas Sait , Lee Trager , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20260729134124.2506269-1-andre.przywara@arm.com> <20260729134124.2506269-3-andre.przywara@arm.com> Content-Language: en-US From: Ben Horgan In-Reply-To: <20260729134124.2506269-3-andre.przywara@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Andre, On 7/29/26 14:41, Andre Przywara wrote: > Allow the functions probing for MSC hardware and features to return an > error, and propagate read and write errors from the lower level up. > This uses some "scoped cleanup" functions like scoped_guard() and > ACQUIRE() to avoid the complexity of error handling when a lock has been > taken. Since the mon_sel_lock is a bit special (even more so in an > upcoming patch), we define a new GUARD type for it. > > Signed-off-by: Andre Przywara > Reviewed-by: Jonathan Cameron Reviewed-by: Ben Horgan Thanks, Ben