Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 07B9CC433FE for ; Thu, 25 Nov 2021 11:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=22rMWz+jcD2yzKSW+kIA6NHNaxvXDA8+my2ylLhlXgc=; b=bzMSyYWdrTJ4TsT/2bXFwMU+Sz /sLrmqtWNZQKqa4onkOhHhqPAClsNHHW+UY5Dl+38MwZcBoeJUWENyZHVXOvZRZSPD5QupBPlTvez HaSmOafkAmSSiatvYbYuoblzdDEPnViOsklZy8XC87FY2gWHrbXPcTs6NOS8nSpvEPTRVs32estqN Ktq/ga1fwq+WgQ7s27gZbyHXr29jn+hrg7OiMtCZm/nP6gSJaSBPcEK6LIUci3DxmCCQnCg09HhPb w+zLub6IiI7G+2gDpL1f6zXHK4Xui1ArESnEBwqQjmQcsW3O70VOcO6Ef9lUnjXxEaibvSPk5kSdO 0dm4oMag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqCfa-007BxN-Qu; Thu, 25 Nov 2021 11:12:03 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqCdV-007Aim-Qt for linux-arm-kernel@lists.infradead.org; Thu, 25 Nov 2021 11:09:55 +0000 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 0BF241042; Thu, 25 Nov 2021 03:09:53 -0800 (PST) Received: from [10.1.35.142] (e121487-lin.cambridge.arm.com [10.1.35.142]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8A23D3F66F; Thu, 25 Nov 2021 03:09:52 -0800 (PST) Subject: Re: [PATCH] ARM: NOMMU: Reload __secondary_data after PROCINFO_INITFUNC To: "Russell King (Oracle)" Cc: linux-arm-kernel@lists.infradead.org, ardb@kernel.org References: <20211125104841.46128-1-vladimir.murzin@arm.com> From: Vladimir Murzin Message-ID: <936a487f-4baf-cdc8-a791-350948474bd0@arm.com> Date: Thu, 25 Nov 2021 11:09:31 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211125_030953_977888_542403E9 X-CRM114-Status: GOOD ( 16.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11/25/21 10:58 AM, Russell King (Oracle) wrote: > On Thu, Nov 25, 2021 at 10:48:41AM +0000, Vladimir Murzin wrote: >> __secondary_data used to reside in r7 around call to >> PROCINFO_INITFUNC. After commit 95731b8ee63e ("ARM: 9059/1: cache-v7: >> get rid of mini-stack") r7 is used as a scratch register, so we have >> to reload __secondary_data before we setup the stack pointer. >> >> Fixes: 95731b8ee63ec9419822a51cd9878fa32582fdd2 ("ARM: 9059/1: cache-v7: get rid of mini-stack") > > Documentation/process/submitting-patches.rst requests only 12 digits for > the sha1 in the fixes line, which makes this: > > Fixes: 95731b8ee63e ("ARM: 9059/1: cache-v7: get rid of mini-stack") > > and avoids it being unnecessarily long. Please make that change before > sending it to the patch system, thanks. Done. > > Other than that, patch looks good, thanks. Thanks for prompt feedback! Cheers Vladimir > >> >> Signed-off-by: Vladimir Murzin >> --- >> arch/arm/kernel/head-nommu.S | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/arm/kernel/head-nommu.S b/arch/arm/kernel/head-nommu.S >> index 0fc814b..8796a69 100644 >> --- a/arch/arm/kernel/head-nommu.S >> +++ b/arch/arm/kernel/head-nommu.S >> @@ -114,6 +114,7 @@ ENTRY(secondary_startup) >> add r12, r12, r10 >> ret r12 >> 1: bl __after_proc_init >> + ldr r7, __secondary_data @ reload r7 >> ldr sp, [r7, #12] @ set up the stack pointer >> mov fp, #0 >> b secondary_start_kernel >> -- >> 2.7.4 >> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >> > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel