Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp208946lqn; Thu, 11 Apr 2024 21:01:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/4lthTGSIaFjvq6QzexcoNTdRLHS79os2WrahOWLy7ZOkGlNw3/vXj8RVZM0BKAFTjXcmMmDZZAOqC7XUs+U/KA7iOpXAK0b7OkEimg== X-Google-Smtp-Source: AGHT+IGJlUOGi+2z1P7qrdI0SUH5US7nqOmGZMv4UJmO9wtDjZStCeN8KQ4Br/V+cs3rw+NViw9/ X-Received: by 2002:a17:903:2352:b0:1e2:b01c:f86b with SMTP id c18-20020a170903235200b001e2b01cf86bmr1804985plh.0.1712894497907; Thu, 11 Apr 2024 21:01:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712894497; cv=pass; d=google.com; s=arc-20160816; b=jHFGGw0neypeiR9dvMkWMSKcS+7+ewoB0uMiwFttXxKULDPVjtnd6CQWdl0YN3SdcT mMdaRMtdVVz7mrc1wgHZf1GnVr/yjUlqXcY0t2gmqQVE7RB12aaMxzmsOEA+PfqZhRIf wzVWZDiRxREsXP9FV0/9AMW57rtqP9looevf60pzsBEUMKv9tspcDq5cUHv4mlJ68Cqq /F2hnDp7PFgcAPG/m/8vY7r+T/WGqR/Rk1GVomCexotKrO30L/oxQsjoqOMxdJO5SI4k X+bLle5QeuCa+sqV9MyKDa3mtXeuJLbzvdJpCwJhE+L7FW0ppAWecu+2aGmefWpjFv7Y /0GQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=zATf7TdNxiyg1Dez/b5kOASGb5MJjGlnwn1/u9g8vNA=; fh=AT+umI9sZMb+fCwuEKJMKmMvg83EehW6M3JB3g3pvXI=; b=y+DbJNCW6ikRpFMGmqpPHl9VDTwQCKqqSkxsTZSFrLaQ1Ge8ly0uIF8A03cyWnklQU wxjklfyBl1e33d1yda/5QadeZ9oyb+tIeQWoUeI2Hx0LoleYcgFhZBvDPf5yDSHrvPjZ oQvwpudV++U4WRXcEtDFP7X01FrZXGZxkBCwU3gykUS1g4I5yZfi1PHGsbHgYrvg4Cm/ hJJYzxEKHsjdUyQeWQyJC0FDpirB24TA6FkRyJJptSX05AOLkUGjiVslp89daB5ceTkT SIdmONetO9jSSoBaoFmfz2ScNVtLE9qgI+V+1+AyC4I/Z++Oli+8UdxJYUcMrtyf7wKa +cmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=id6QSBwk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-141884-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h19-20020a170902f7d300b001e0a08bbe43si2388149plw.519.2024.04.11.21.01.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 21:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141884-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=id6QSBwk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-141884-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 16C1CB226A7 for ; Fri, 12 Apr 2024 04:01:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C5A9199B8; Fri, 12 Apr 2024 04:01:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="id6QSBwk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5761F18C1A for ; Fri, 12 Apr 2024 04:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712894462; cv=none; b=MpWqLTLNiN2vz2stoW+uJA+idIxgcgUa1yewCcJcwltpUPX/ORPqPcuF8azisTVruPI7fJQHIBp9aMv06sh6wYWEJd25FnR81BKsKA9XXG4i1EhG9Hqmj4C1+SFihQQNLP+i86WwFhIk/SguaiBt1w3aCc3SGk42Notldc//b30= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712894462; c=relaxed/simple; bh=FHSLyEEKVchTgoIEr+g2q0br3k2Eynv1qaMzyMLT3Hg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=h7pI+gDN3TsdyPOlp6VQEJDLNAnB1e6dnJev0LFmy9wjozZvNzcBbByRl2z0GuzRR9+bzpsTi7yxu5PzhCMGGVdmWxcLIW95xJrIK/xfjdjrWCN3/QfRAwmezCBzC1HfS65oUBM+On4JzKVEtIeKssDE5BTnHBp/ijtxlu+bdTk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=id6QSBwk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0AF0C4AF0D for ; Fri, 12 Apr 2024 04:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712894461; bh=FHSLyEEKVchTgoIEr+g2q0br3k2Eynv1qaMzyMLT3Hg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=id6QSBwk2Qp9f+Kk3l3Z/oTjSONeD7FHDo+qcKVegnN1rRstsf3oagOKt3RL3o5aa 37AcLfuSZVGcoscqvZ/C90JJyqTv6uSdJweQvl/NUujTiYh5ADKOIhYYIZBv2pHPux HbBISoNia61g7Aq4F9KfhOO6JAHfsliZIlm4o1UstHHGK08cfQYlcNDrHpIsrRG07S 6UBTwWWBwDCylI0sh3uedEBf5yI8RxsKuEw4AmXFbCrwYWYLd6LLf8QrTAnH4fhP+E JxtfazIPUl2k92NJEafLUcWAKj2u1b+d/yMRES2glZE3lRlKvk61gersb9ZW5V1Gah T72B71wOChqng== Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a46ea03c2a5so76511866b.1 for ; Thu, 11 Apr 2024 21:01:01 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUsMQ0oMT6GKEPxLWlmqEvXX15pAoQWD3DCquJX2D8X3x27vHMAVJOGgtTutVL97jALn3fxRmgOJ2P68lp5CQwwazY/9pdeGH1RZ4AR X-Gm-Message-State: AOJu0YyqPaBwPgsKLCJchEsf3JsQGkBHce/jZ9Jwt/RwscNRYTqJXVO4 c6zYEanriR0+NJdus2STCUeoKTMlmaAluy57qwvnGF0R+Jpw1tvcgxRa9VqRfj+6Ux5bfkyb+LI jNzONRtUnEoSkEM/1IG6/yewS10E= X-Received: by 2002:a17:907:78c2:b0:a51:f823:f4b4 with SMTP id kv2-20020a17090778c200b00a51f823f4b4mr1155256ejc.17.1712894460290; Thu, 11 Apr 2024 21:01:00 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240411010510.22135-1-yangtiezhu@loongson.cn> In-Reply-To: From: Huacai Chen Date: Fri, 12 Apr 2024 12:00:53 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/4] Give chance to build under !CONFIG_SMP for LoongArch To: Arnd Bergmann Cc: Marc Zyngier , Tiezhu Yang , Thomas Gleixner , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Arnd, On Thu, Apr 11, 2024 at 2:07=E2=80=AFPM Arnd Bergmann wrote= : > > On Thu, Apr 11, 2024, at 06:26, Huacai Chen wrote: > > > > I remember that you both suggested not introducing NOSMP support for a > > modern architecture which brings additional complexity. I wonder if > > you still have the same attitude now. I will merge this series only if > > you think it is worthy to introduce NOSMP now. > > It's an interesting question, as we have recently discussed two > opposite ideas and may end up doing both (or possible neither) > in the future: > > - On x86, there is no real reason to need non-SMP kernels as the > memory savings are fairly small, and it tends to break because > of lack of users testing it. > > - On arm64, we have never supported non-SMP kernels, but I have > looked at possibly adding this because there are still popular > ARM based system-in-package products with less than 128MB of > built-in RAM and only a single CPU. As these are moving from > 32-bit to 64-bit cores, it becomes more interesting to build > a 64-bit UP kernel and save multiple megabytes. > > I think loongarch64 is in the same place as arm64 and riscv64 > (which does allow non-SMP builds) here, and there are good > reasons to allow it on all of them now, even if we previously > never had a need for it. OK, thanks. This means you agree to support non-SMP on LoongArch now, then I will review this series carefully. Huacai > > That said, both the 9% observed performance improvements that > Tiezhu Yang reported, and the memory savings that I saw are > probably higher than they should be, so we may also want to > investigate that further to see if we can improve the SMP > kernel to better support UP runs. > > Arnd >