Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1786645pxy; Thu, 6 May 2021 16:16:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcAslB7F0d7oAVcZNOlCO9yW3Sr8Vf9BehEXuQ9MqMB470Fdq09AkQFSsNeo5EsLb+COIf X-Received: by 2002:a17:90a:304e:: with SMTP id q14mr7146594pjl.55.1620342961875; Thu, 06 May 2021 16:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620342961; cv=none; d=google.com; s=arc-20160816; b=cL9jMIMaBt9cFBHs5+AhQFJxIcwHYpfp+a+X8N+IcxpqV5qA7NH50jEXb4rDgsbt+x OaAgva4LbELApgP3eTuquu43zXHB75bOZQiXlUnt7VpCyTPxqOUhCnGXd2Ud4BBBOvNQ JZb25sizR+LfM6ogD5qMbbtbiWWBq48SsXSKiVulKdI+Tn/WGd119/fB6gfFpNklDXl6 I2QT+KT8zLF3PfOrSTpbbVGWH4ZkjDY5htkEjShZD4WJL/BkknbnR9b+mZQzGkD7yeqM cAjyqORALjFYBAZnEVE8DNXqYczpyBJZm1org2R434k0OsUz4fKtS0ZX+ymQcxvzpml8 MEkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OF5PEurupkUAiAUIMYP8aVshT25w9rwXrm3hPJm8WYQ=; b=n9CT19xtdYKY3EPbSLuxf6+pTLV5dVceGBGI6+J+XsaN0upY+7+1LWkRW/Q8MorOY6 66axAvHLSMrHEKth5xnwiYO1/elQKLUDwvPKGkUKUvfkLPRBpth1LNwT+9SpzThL5K40 WWweudk9mf/SAOp5kdj6Rj/AcE78+ug4q98Jz/cJg4231JiLnRLBWJ7YyMar7IwmHLqF We5tgkIIkRHutFwl+yaGjqaMfFYXv7Vo79P7RjnHyHAh5YaqQbkKZmzPWgOKXsmXCFPY Uj8Z90BX/vEvFoVWB34N7H7eMS6ZfHdJo0ME6+I1kQWZtIh4mrvk62oVgKf9mgRJfLt/ FKOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K1dYaLVf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si5435955plz.342.2021.05.06.16.15.49; Thu, 06 May 2021 16:16:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K1dYaLVf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235971AbhEFPkW (ORCPT + 99 others); Thu, 6 May 2021 11:40:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:49892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236250AbhEFPjd (ORCPT ); Thu, 6 May 2021 11:39:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 756AF610A1; Thu, 6 May 2021 15:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620315513; bh=Q0AranOJ2+2R5VGGKS2I1dV1saSj95Pxw1bkJgk4TOw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K1dYaLVfKwmMdywlq+dp4lgLL14sAB8nlpvKcKEPfl+/a7xB+/v/MiccBHrmR8g6X NGqmPtk9l4W1PbH4KpxwUA67EjnyJqksUqPw3gvxRJDIU8FD6LNhnHU0kSn+WBA3F4 opWFJwZG+zhydS0F6nY1gpNgSDstCGtDLoBq6ApRtGEX4hSdJzLgYdpnxG/0w+l+Mn R5dvmmQNssVIYz2622Bzs2k+04fwHchUAaz+nYcpMLNSsmTzcameH7ojKVDYnr4Ccr dfCkk0CmirETJrI9dLPH7oY/XqiWP84SClNqsRX05e1/G/1sY1MlD/UAY5YWgFijh/ ynC7OtLGhZUTA== Date: Thu, 6 May 2021 16:37:56 +0100 From: Mark Brown To: "Madhavan T. Venkataraman" Cc: jpoimboe@redhat.com, mark.rutland@arm.com, jthierry@redhat.com, catalin.marinas@arm.com, will@kernel.org, jmorris@namei.org, pasha.tatashin@soleen.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v3 3/4] arm64: Handle miscellaneous functions in .text and .init.text Message-ID: <20210506153756.GA3377@sirena.org.uk> References: <65cf4dfbc439b010b50a0c46ec500432acde86d6> <20210503173615.21576-1-madvenka@linux.microsoft.com> <20210503173615.21576-4-madvenka@linux.microsoft.com> <20210506141211.GE4642@sirena.org.uk> <8268fde8-5f3b-0781-971b-b29b5e0916cf@linux.microsoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <8268fde8-5f3b-0781-971b-b29b5e0916cf@linux.microsoft.com> X-Cookie: Is this really happening? User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 06, 2021 at 10:30:21AM -0500, Madhavan T. Venkataraman wrote: > On 5/6/21 9:12 AM, Mark Brown wrote: > > On Mon, May 03, 2021 at 12:36:14PM -0500, madvenka@linux.microsoft.com wrote: > > I was thinking it'd be good to do this by modifying SYM_CODE_START() to > > emit the section, that way nobody can forget to put any SYM_CODE into a > > special section. That does mean we'd have to first introduce a new > OK. I could make the section an argument to SYM_CODE*() so that a developer > will never miss that. Some documentation may be in order so the guidelines > are clear. I will do the doc patch separately, if that is alright with > you all. I was thinking to have standard SYM_CODE default to a section then a variant for anything that cares (like how we have SYM_FUNC_PI and friends for the PI code for EFI). > > We also have a bunch of things like __cpu_soft_restart which don't seem > > to be called out here but need to be in .idmap.text. > It is already in .idmap.text. Right, I meant that I was expecting to see things that need to be in a specific section other than .code.text called out separately here if we're enumerating them. Though if the annotations are done separately then this patch wouldn't need to do that calling out at all, it'd be covered as part of fiddling around with the annotations. --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmCUDVMACgkQJNaLcl1U h9Drpwf/SRzqFMWq22H1Ml8s27Hh49gC4CLFUccseoSmz/co/VzB6TRhYlOyIfHE CquUlAiLLDlHRaIeZLOc9bPRdafdaXoC58VYe8TUsyKHl0+pmWo4X2A9ky2Ig9RM pFFvTMAU2xA1wAh6JRpJVYU0tPZv5nrQ7HSOmoDkySeimDkMbE64RJLIrOr/uxMw LPuqYgruwUirX05C7FPyEQHPCle7/IkJ448nrY9noXSJ5Qh69Mf5YyfKCvVQI1bC mKhjwpj9r13kF0dpMa8haPuLNmu1pbFcCgTcwzpJ87w7AQ1LtGPy+Pmvzj7ESM6y lu03JhhYAU9hJSRQAfMFkyb/FTqShg== =HPop -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--