Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp472313pxb; Thu, 21 Oct 2021 03:21:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvg5Da/BadLbaCfikAd1a33JHC+iYT//FH7Q85cvK6iEe0XtqxJeoE5bwwrxxbOkVAnD9N X-Received: by 2002:a17:90b:4f4b:: with SMTP id pj11mr5681536pjb.4.1634811689153; Thu, 21 Oct 2021 03:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634811689; cv=none; d=google.com; s=arc-20160816; b=h41i/ruailOuqRoTg7V4ew6n+h3Jw/onfZ5yQweoMipGnudy+DzRslrx0+mkkkyJM7 ZQU/ns13ldTTb2sQE9gK1XKx/6uQ9pyeZ1AGyR91CTMknRZi/ZZYPHnLUFSzsbY6oPfQ 2Lbhr/PbM3QYtnzzGw7QjOSSSwFpL7q/sT6KC0LLmB+Pk5bIsCdO3lB/Jtz63kPiBV/L kZGajMZZYdU7Q0YeGhdiKKP7GTAaHd2ys/NchGnnH52m6KNm/IKo/foPvlSDcYa+COSd WvYNTOF3OU0/Yv4PVgZ3vNH9Xy5FGUI7n2EY3w4uf26f66xXR2wef0WjbZ2U2ZbH2wQg 164Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=nlCapqt5VtZd6kRSqIMP7Yj+BO5colHjxJJ+EXfonxQ=; b=sFRjWW8jlUPcpNc6z6rDuSYIzISsK+5fzgNRjvgxlk+EpRyH6/4FfnQn6pNG9YKycs LTzKlgiEF0jWsDf4YjZFedE3yvwPXHbN4q26gUnCSQoAm9ybAwOXESLQHcM8iDX32huI AZrF6ODCUS2eTuVqgrw6Hls814PKvZMUSvJp4ce06AeeXm6gmitYabhvtiXU+1pTtcp9 dM/jAgWdQxpP3c3RjWARUtipToL+NKgZzF+hwUldPkPXzz7n1+LwC7rU08UTbUdHBK3+ DexfM5YjjlZUfDi4IylpQHy9ehzx7jh+abqYZoCN8K6nDPcV/RPS3O6XY2nAipNO38gB sJjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si8244659pgh.375.2021.10.21.03.21.16; Thu, 21 Oct 2021 03:21:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230308AbhJUKW2 (ORCPT + 99 others); Thu, 21 Oct 2021 06:22:28 -0400 Received: from angie.orcam.me.uk ([78.133.224.34]:34262 "EHLO angie.orcam.me.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbhJUKW1 (ORCPT ); Thu, 21 Oct 2021 06:22:27 -0400 Received: by angie.orcam.me.uk (Postfix, from userid 500) id 8DCFC92009C; Thu, 21 Oct 2021 12:20:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 86E0F92009B; Thu, 21 Oct 2021 12:20:05 +0200 (CEST) Date: Thu, 21 Oct 2021 12:20:05 +0200 (CEST) From: "Maciej W. Rozycki" To: Thomas Bogendoerfer cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] MIPS: Fix assembly error from MIPSr2 code used within MIPS_ISA_ARCH_LEVEL In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Oct 2021, Maciej W. Rozycki wrote: > The assembly architecture override is only there for the LLD/SCD > instructions, so fix the problem by wrapping these instructions on their > own only, following the practice established with commit cfd54de3b0e4 > ("MIPS: Avoid move psuedo-instruction whilst using MIPS_ISA_LEVEL") and > commit 378ed6f0e3c5 ("MIPS: Avoid using .set mips0 to restore ISA"). Scrap it! There's so much accumulated cruft around the handling of LL/SC sequences that I forgot what the original intent was. The whole sequence has to be assembled for an explicit 64-bit ISA of course as it's meant to work with 32-bit kernels. The commits referred above are red herrings, and should not have been needed in the first place if not for the cruft. I don't think I'll get to cleaning up the cruft anytime soon, but I'll post v2 tonight to address this specific issue. Long-term perhaps we can make some extraneous hacks (ones to address issues with earlier hacks) go away. Maciej