Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1595690rda; Mon, 23 Oct 2023 18:49:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLlWo9Y/RK/KwQio4pody8DHpMMydqONI/p+slhE/th6SZUILLAK37o8OMhSCBuxINSviY X-Received: by 2002:a17:902:f685:b0:1c7:7c2c:f828 with SMTP id l5-20020a170902f68500b001c77c2cf828mr14722796plg.8.1698112198481; Mon, 23 Oct 2023 18:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698112198; cv=none; d=google.com; s=arc-20160816; b=gJewqjA5/CSJ1RnPacCNndzDe+NCdilHwh4L4Y2diARaDbhTipHJVNGHgfy/2Uw1eA 0BDxUFO8IRhiTw0vlQ07r3BSPFV3KdE9WjtFQnXoCkyDg4hamCQUzvZbzmUOY2xFZ+pl VEo8tiHCw8LrO6rtp+CM+lQ+t1v8v3fU84tnq8iy9g0xgn1K7My8tBQL4mX3M0qE42RY jB10XG4gXjwPxJFpLSQePu7tgLQ/hCznxosejFD/aUb/cTJRVk0wG2IIKa9taeIpuhWS oUpqN9gs9NxLvrtSwqpn0SxWsj0+qohVOuDnxL2pAkVFOix4C/qw/Iz+PwwCB/MWkVyv nFgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=q7ZvVoJxhqdAzz/FkRyNxxeapXRNDAvUD/UH9fw9b1I=; fh=Ezi0UBEICJdaE+HV4zDLUuBW6v/qtiVKoeRvdApGgWA=; b=RN2Q552xuYyAwj3QSvgdJ29yCk1YkLsG1/QkVOJkiA37+FoX7IH+tHYfwmCAZ+JvL3 1hxcndD9zDyTALeGCqKCUa6H7nkV2KQoFVlDn6FCvV1OMhBOscCXaiwz4gjklDxi4bqU UYVFeUAGb6OR7uDzSru3N+mJ80zLV+LWjH47if7vxT5NF8HBsc6ahScrptWFzYGICcrj GX+YYUCD55W1njgTLT8eHfV+0iqwqlqNl21V2P1rF5CzUpF3xEAlrEtCgDvWMOW0+BfQ m/stGY3ilVqJo9xcYIWTqYKW2QmcZMPm/7LuzucKPpn4VjuZQi3NMLZOY9CJJUiMHLa0 szQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Q19/KMnY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 4-20020a170902e9c400b001c76a06b5b5si7244572plk.298.2023.10.23.18.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 18:49:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Q19/KMnY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9279D80C2450; Mon, 23 Oct 2023 18:49:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231828AbjJXBtx (ORCPT + 99 others); Mon, 23 Oct 2023 21:49:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjJXBtu (ORCPT ); Mon, 23 Oct 2023 21:49:50 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61E3E1A4; Mon, 23 Oct 2023 18:49:48 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-41cbd2cf3bbso40887051cf.0; Mon, 23 Oct 2023 18:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698112187; x=1698716987; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=q7ZvVoJxhqdAzz/FkRyNxxeapXRNDAvUD/UH9fw9b1I=; b=Q19/KMnY8etLXDsZroaaj0nHUlw3kv9wp+c9Is2zVcTKNIqGoBJf6UJM3aj95sQF3q 16iXu+C1IgbJfZ0tw/0G6yglp3X5gpAceVbZQDNe/ypTJh0dYadyHA/x82gcTgPHI9lv 9wDOMuaNRpe1TmppaZ99f3F+dMhnhYdQA5pGKnBAtKrcPfxvmyIS5YYSPhXj0HdNl4YX PFZeO2FiF6NtnlqGswCv4LmiAoU62pDRl4bO82ZjyL3wQ5F00D/MzvVyV8UD69Go6lyi anuSrAPNlOdBjb5wY4osGpu5zsTnPJA9+qHFi/zQw0wvtoGeUdqSgFyWLzUyiOTDxmLQ MUGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698112187; x=1698716987; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=q7ZvVoJxhqdAzz/FkRyNxxeapXRNDAvUD/UH9fw9b1I=; b=H5BI4foz727vgOb2UhKql/q67C7o9Hbf/E3FZKd0Im39nXh7xBLoBxBtgPnD75L+aT ChFdeM1QjJYeCANEGUthqi6IZbCSJVOax/lCz3NMAcNazdcvMJrBqE+CBiBp1d2GpKiM IOCpPQ6BD3Odi2fML2DNrzKIwewpX0JX+xe83jf7FfvocM4u5D70zaCRbS15lnNcNMIv WT5jpqxp5ZYIrpcvRDakVA+xh8TTOqx7fhQT9lsM1qLUEfZEx3oG2EL8cB1A1SjaNT7U G3FBd6ftkCzlPBtGnUAP0dmNAf3vwhjB7riGNcRVu0UMwG1/jW+bBYDqrWYblTC59XYz 4+Ww== X-Gm-Message-State: AOJu0Yzs7RgeFPpIRvH9AAFoE5AbwdxkPYz/7xdWLtT+G2lPTDgjhx8j GgIPU3spzuHC4F3EGP8tPLU= X-Received: by 2002:ac8:7f55:0:b0:412:1ae6:3922 with SMTP id g21-20020ac87f55000000b004121ae63922mr12779062qtk.33.1698112187406; Mon, 23 Oct 2023 18:49:47 -0700 (PDT) Received: from [192.168.1.3] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id i21-20020ac860d5000000b0041b3deef647sm3159076qtm.8.2023.10.23.18.49.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Oct 2023 18:49:46 -0700 (PDT) Message-ID: Date: Mon, 23 Oct 2023 18:49:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 01/11] MIPS: compressed: Use correct instruction for 64 bit code Content-Language: en-US To: Gregory CLEMENT , Paul Burton , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vladimir Kondratiev , Tawfik Bayouk , Alexandre Belloni , =?UTF-8?Q?Th=C3=A9o_Lebrun?= , Thomas Petazzoni References: <20231004161038.2818327-1-gregory.clement@bootlin.com> <20231004161038.2818327-2-gregory.clement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XEJaQVeTC y5arMQorqTFWlEOgRA8OP47L9knl9i4xuR0euV6DChDrguup2aJVU8JPBBgRAgAPAhsMBQJU X9LxBQkeXB3fAAoJEGFXmRW1Y3YOj4UAn3nrFLPZekMeqX5aD/aq/dsbXSfyAKC45Go0YyxV HGuUuzv+GKZ6nsysJw== In-Reply-To: <20231004161038.2818327-2-gregory.clement@bootlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 18:49:57 -0700 (PDT) On 10/4/2023 9:10 AM, Gregory CLEMENT wrote: > The code clearing BSS already use macro or use correct instruction > depending id the CPU is 32 bits or 64 bits. s/id/if/ > However, a few > instructions remained 32 bits only. > > By using the accurate MACRO, it is now possible to deal with memory > address beyond 32 bits. As a side effect, when using 64bits processor, > it also divides the loop number needed to clear the BSS by 2. > > Signed-off-by: Gregory CLEMENT Reviewed-by: Florian Fainelli > --- > arch/mips/boot/compressed/head.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/mips/boot/compressed/head.S b/arch/mips/boot/compressed/head.S > index 5795d0af1e1b..d237a834b85e 100644 > --- a/arch/mips/boot/compressed/head.S > +++ b/arch/mips/boot/compressed/head.S > @@ -25,8 +25,8 @@ > /* Clear BSS */ > PTR_LA a0, _edata > PTR_LA a2, _end > -1: sw zero, 0(a0) > - addiu a0, a0, 4 > +1: PTR_S zero, 0(a0) > + PTR_ADDIU a0, a0, PTRSIZE > bne a2, a0, 1b > > PTR_LA a0, (.heap) /* heap address */ -- Florian