Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2889050lqz; Wed, 3 Apr 2024 11:22:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQpVTL6md45QQ1C8hn9Xnd/PlU9g+a2sijU7OtZkC2P/J4XrAB6C9hBOKRWhSxVK55U8j4rmwyfAa4F4zmmaGv9ISopKcI6PgUqErpHg== X-Google-Smtp-Source: AGHT+IE6QkDpBLSNEg72UgD2X/mYiWwNFDTDbb1jPfxzlPRfOH8kppD4f54OxONluSG25QdnnTjl X-Received: by 2002:a05:6e02:220b:b0:368:80f9:7465 with SMTP id j11-20020a056e02220b00b0036880f97465mr446996ilf.26.1712168555506; Wed, 03 Apr 2024 11:22:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712168555; cv=pass; d=google.com; s=arc-20160816; b=BYX7thv1DJ++8TZeWEOtjoN0yC7EYHcQ0i0xYO2m4TsTcFeVZcDtIwU1E2n9cBK66z HMo+rxIcoek50aRAjug8JENYMiCXoMSs/7YckduqNlGY3npU63FE7cyJqXmlqj9JqTpl MpYRgkIqNbtikBG3FSJ3gBwv++FlXHuBLx9R3ayVm1VUzaj61zySIwUn9kof9uvdWuP3 lylT+opWkvn8S0bz10v6pkvE29QMRssdTFf3cIknq4PovlKk6H3MIyIAudOd9yS4qCMC m1P4PZrLJ+bEwStGqh7Qb+WLPI6ijypYetOkkCv9tMRrOwlHwhJup4m+eSsyrSA64Zuv F9dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:to:from:cc:in-reply-to :subject:date:dkim-signature; bh=b+6ScChiC8zS3o9tbiOgcc1DiBxz6xvmMgS5MbEqCVk=; fh=J7Fn6r236b79uZ8jJCXwgQLNesmikHhriEJoQljOZDI=; b=iAJqzxqAYPUV5xmqHM5A+BvfnO0iJfUd8/yctZIj+1VRnsVZ/tJzsnIiYlgfdw23kP jzOpTN1R7rZWQXRj3RtNSAeMqfegMu4tnv3rUpQW9i76zb9oF1Lxrh+JZ6vUbWFR3juE n3FVcDyiBtCCqVCy79ZbfuU2YF6lhJsOFtmwQs2dSSlj4lvY5Dn1ktHLrS3//L27liBM iL4SctA/xo/NUOTjgRFLqeSAACyJ6KBQUpKQmggyPKSjj1VF7daziIT1Sdzj8u2Gwpyb R9SK4rSvnBxvfK7aV3ve82wW2XEsYqDqz3woTRn55WvJeEm6ywH3xhuq2MgcZGgnltFR MEyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=WS1lcdtt; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-130436-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130436-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h16-20020a631210000000b005ee3cfc0a24si13575498pgl.43.2024.04.03.11.22.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130436-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=WS1lcdtt; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-130436-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130436-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 25BFD28224B for ; Wed, 3 Apr 2024 18:22:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2950615356D; Wed, 3 Apr 2024 18:22:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b="WS1lcdtt" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC9D415351B for ; Wed, 3 Apr 2024 18:22:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168530; cv=none; b=XxAF8A2hAU00X7ZPKzDXkE1IG4+sUlKrXNE5c2HNvoRV8i+yHTr/xveWj62iJwZmHvTs+/T1+lkWLeejSPaFWwuRbblrFRVqNt59cepgzkqXis1642AT6ir30Jau8Bsg9dEDkAa04ltVfYQivykoZtOGqGldW9/qQnziNMX0gX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168530; c=relaxed/simple; bh=mPQ6aDx/DzkRZiI7UzFAti6c8odqszdQXKvBp/uj47A=; h=Date:Subject:In-Reply-To:CC:From:To:Message-ID:Mime-Version: Content-Type; b=iKMKKQLp3s/vxlOn2hNK8wwHY9+hgHUSRv7Gvxerdc68K4kd22/0tjZKiuswAQYiS1QMKrn2CtXirFo4WLNSKWb+JfOx032oXfO+R3UCzoE+zd5s3Qyz8S+0ijFRM13jgqYARnTrOLq1Ph7dxrZ/Spe0nbEl3/wx+HD1Eom7sjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com; spf=pass smtp.mailfrom=dabbelt.com; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b=WS1lcdtt; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1e29328289eso949635ad.0 for ; Wed, 03 Apr 2024 11:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1712168526; x=1712773326; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=b+6ScChiC8zS3o9tbiOgcc1DiBxz6xvmMgS5MbEqCVk=; b=WS1lcdttwByvBL81FDxCR9c9ohzcIBrEwgU8WykpdmMwgb72x4x1Vq5CwVOtTW6qEL /U4s/ibFdFNF+gwkTlu+OXDesuZwLTPsVYF+24swBnSk5MMBbTtWAZ+q+cf3tdExrjbZ Xh/oaV/2YgirVkzL/ngg1aBit6RKOFJ4KoOSZX4puydzTZtUKZ9CTiB/6PF+tgqsmgiF pMvSysELXIGSPttBEbRvph76C3mGHB8D57OZ43vUyPiy21tE/Ae+30tvmSNjFtN4cJbY siv6Cnf+vLkrBVeQOECUd0FJLZUqla/oU10n1LpCE1z814xlNsddY0i/c6Cdn909/jAi fBZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712168526; x=1712773326; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=b+6ScChiC8zS3o9tbiOgcc1DiBxz6xvmMgS5MbEqCVk=; b=YPhtcFo2EEMJt5D0ffBYln/MLJB7liWzAKKQnsVsGK79hYvn3jXyElRgAJmZukaCsA aNhXdxBckuR9Q53V819KYaAlLBj1Ixgn/wMftSjkLCnnlGBM9uN/RMGzCaF1TdpNWkxo m2WS9sYOluHTk3azt0AhKSzmvQTbchQEjGnW7Yds6gVlnpi4CdAJHZMFbHrpeZsxConp dHfsltIaMKBckdt5nc7QCJ2kfBvaDkTrlynnygIa42wV5oeXZROs1LRyZ+fBSt964dZT pY7e21cfUCoka3U/yZfwFM0w7CPZQZqA2znLWgSjmlrCkFiOh/tLo6nwdgZKs832ouNS 21vQ== X-Forwarded-Encrypted: i=1; AJvYcCUJoO22kMwrjarf5ZYU0K9ByZxAI29JiT0XAQSrYF9lOueR60bAh+pc8kz+5zNTNu7UQy5eaBHxj/rbwuW6VyUpdZj6/S/BgKdchYTG X-Gm-Message-State: AOJu0YxytQMXciZPg46Sk8tILWF3DLXhHpM6LMMd47x/V6+M+Mb1hyar om2iGTlfuJptx4jf7oaFF9LA3ZJJ47ttoUoGY3deLSFP5g9wOf8TIadDxNclFNo= X-Received: by 2002:a17:902:c14b:b0:1e0:a7c5:b5a5 with SMTP id 11-20020a170902c14b00b001e0a7c5b5a5mr67760plj.37.1712168525743; Wed, 03 Apr 2024 11:22:05 -0700 (PDT) Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id c2-20020a170902d48200b001dd652ef8d6sm13572476plg.152.2024.04.03.11.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:22:04 -0700 (PDT) Date: Wed, 03 Apr 2024 11:22:04 -0700 (PDT) X-Google-Original-Date: Wed, 03 Apr 2024 11:21:38 PDT (-0700) Subject: Re: [PATCH v1 2/2] RISC-V: drop SOC_VIRT for ARCH_VIRT In-Reply-To: <20240305-stress-earflap-d7ddb8655a4d@spud> CC: linux-riscv@lists.infradead.org, Conor Dooley , Conor Dooley , Paul Walmsley , aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, brendan.higgins@linux.dev, davidgow@google.com, rmoar@google.com, Jason@zx2c4.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, wireguard@lists.zx2c4.com, netdev@vger.kernel.org From: Palmer Dabbelt To: Conor Dooley Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On Tue, 05 Mar 2024 10:37:06 PST (-0800), Conor Dooley wrote: > From: Conor Dooley > > The ARCH_ and SOC_ versions of this symbol have persisted for quite a > while now in parallel. Generated .config files from previous LTS kernels > should have both. Finally remove SOC_VIRT and update all config files > using it. > > Signed-off-by: Conor Dooley > --- > I had a 1.5 year old ack from Jason that I dropped due to the passage of > time. > > CC: Paul Walmsley > CC: Palmer Dabbelt > CC: Albert Ou > CC: Brendan Higgins > CC: David Gow > CC: Rae Moar > CC: "Jason A. Donenfeld" > CC: Shuah Khan > CC: linux-riscv@lists.infradead.org > CC: linux-kernel@vger.kernel.org > CC: linux-kselftest@vger.kernel.org > CC: kunit-dev@googlegroups.com > CC: wireguard@lists.zx2c4.com > CC: netdev@vger.kernel.org > --- > arch/riscv/Kconfig.socs | 3 --- > arch/riscv/configs/defconfig | 2 +- > arch/riscv/configs/nommu_virt_defconfig | 2 +- > tools/testing/kunit/qemu_configs/riscv.py | 2 +- > tools/testing/selftests/wireguard/qemu/arch/riscv32.config | 2 +- > tools/testing/selftests/wireguard/qemu/arch/riscv64.config | 2 +- > 6 files changed, 5 insertions(+), 8 deletions(-) > > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > index e85ffb63c48d..dcbfb659839c 100644 > --- a/arch/riscv/Kconfig.socs > +++ b/arch/riscv/Kconfig.socs > @@ -52,9 +52,6 @@ config ARCH_THEAD > This enables support for the RISC-V based T-HEAD SoCs. > > config ARCH_VIRT > - def_bool SOC_VIRT > - > -config SOC_VIRT > bool "QEMU Virt Machine" > select CLINT_TIMER if RISCV_M_MODE > select POWER_RESET > diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig > index ab3bab313d56..8d46a9137b1e 100644 > --- a/arch/riscv/configs/defconfig > +++ b/arch/riscv/configs/defconfig > @@ -32,7 +32,7 @@ CONFIG_ARCH_SOPHGO=y > CONFIG_SOC_STARFIVE=y > CONFIG_ARCH_SUNXI=y > CONFIG_ARCH_THEAD=y > -CONFIG_SOC_VIRT=y > +CONFIG_ARCH_VIRT=y > CONFIG_SMP=y > CONFIG_HOTPLUG_CPU=y > CONFIG_PM=y > diff --git a/arch/riscv/configs/nommu_virt_defconfig b/arch/riscv/configs/nommu_virt_defconfig > index b794e2f8144e..de8143d1f738 100644 > --- a/arch/riscv/configs/nommu_virt_defconfig > +++ b/arch/riscv/configs/nommu_virt_defconfig > @@ -24,7 +24,7 @@ CONFIG_EXPERT=y > CONFIG_SLUB=y > CONFIG_SLUB_TINY=y > # CONFIG_MMU is not set > -CONFIG_SOC_VIRT=y > +CONFIG_ARCH_VIRT=y > CONFIG_NONPORTABLE=y > CONFIG_SMP=y > CONFIG_CMDLINE="root=/dev/vda rw earlycon=uart8250,mmio,0x10000000,115200n8 console=ttyS0" > diff --git a/tools/testing/kunit/qemu_configs/riscv.py b/tools/testing/kunit/qemu_configs/riscv.py > index 12a1d525978a..c87758030ff7 100644 > --- a/tools/testing/kunit/qemu_configs/riscv.py > +++ b/tools/testing/kunit/qemu_configs/riscv.py > @@ -13,7 +13,7 @@ if not os.path.isfile(OPENSBI_PATH): > > QEMU_ARCH = QemuArchParams(linux_arch='riscv', > kconfig=''' > -CONFIG_SOC_VIRT=y > +CONFIG_ARCH_VIRT=y > CONFIG_SERIAL_8250=y > CONFIG_SERIAL_8250_CONSOLE=y > CONFIG_SERIAL_OF_PLATFORM=y > diff --git a/tools/testing/selftests/wireguard/qemu/arch/riscv32.config b/tools/testing/selftests/wireguard/qemu/arch/riscv32.config > index 2fc36efb166d..2500eaa9b469 100644 > --- a/tools/testing/selftests/wireguard/qemu/arch/riscv32.config > +++ b/tools/testing/selftests/wireguard/qemu/arch/riscv32.config > @@ -2,7 +2,7 @@ CONFIG_NONPORTABLE=y > CONFIG_ARCH_RV32I=y > CONFIG_MMU=y > CONFIG_FPU=y > -CONFIG_SOC_VIRT=y > +CONFIG_ARCH_VIRT=y > CONFIG_SERIAL_8250=y > CONFIG_SERIAL_8250_CONSOLE=y > CONFIG_SERIAL_OF_PLATFORM=y > diff --git a/tools/testing/selftests/wireguard/qemu/arch/riscv64.config b/tools/testing/selftests/wireguard/qemu/arch/riscv64.config > index dc266f3b1915..29a67ac67766 100644 > --- a/tools/testing/selftests/wireguard/qemu/arch/riscv64.config > +++ b/tools/testing/selftests/wireguard/qemu/arch/riscv64.config > @@ -1,7 +1,7 @@ > CONFIG_ARCH_RV64I=y > CONFIG_MMU=y > CONFIG_FPU=y > -CONFIG_SOC_VIRT=y > +CONFIG_ARCH_VIRT=y > CONFIG_SERIAL_8250=y > CONFIG_SERIAL_8250_CONSOLE=y > CONFIG_SERIAL_OF_PLATFORM=y Acked-by: Palmer Dabbelt