From nobody Tue Apr 23 13:12:33 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1673512261; cv=none; d=zohomail.com; s=zohoarc; b=PM1py51YPSp42Qd5rjtx/WFA+cK+NdbBD/XUJpNv+8H+zSRw6RWLhVtw9hIysevtGNXT6tNd7NfCBA78CvYjK9yTFU4K7U326WKNH/Grcm1+Iw89h5nsfJC7XlC/ll/IKkjwNgG2nuto+XZ2lwiFIIE4f6qdg6HrHlGJHIxtxGI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1673512261; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=sVfYgbCVY/WbpS8k7uGQZNd6BIUD4uBueoLXy5mqWVE=; b=d38i1Sz6V51nXvqHCE1O6mPCaVCs0bdcRI3Jh5pFZI8bc7U7pU5ARiBmDblTX+iIIcukIcele6WF40iDXKlkFXJBdYpP6roWnkwFLQYDVU4MSA9RfgltG6WoL+dNVxWXnrWOtYejXiT09dgeYnc0O3H0T+FboWZeGEdrlUogt3s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1673512261089551.4246484515315; Thu, 12 Jan 2023 00:31:01 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFsyN-0007Rb-98; Thu, 12 Jan 2023 03:30:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFsyL-0007R7-Bi for qemu-devel@nongnu.org; Thu, 12 Jan 2023 03:30:05 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFsyJ-0003yo-L9 for qemu-devel@nongnu.org; Thu, 12 Jan 2023 03:30:05 -0500 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-380-6R0NKPu-NdmoCq1Gd1nDjw-1; Thu, 12 Jan 2023 03:29:57 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2E1A3101A521; Thu, 12 Jan 2023 08:29:57 +0000 (UTC) Received: from thuth.com (unknown [10.39.193.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3B1711759E; Thu, 12 Jan 2023 08:29:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673512203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=sVfYgbCVY/WbpS8k7uGQZNd6BIUD4uBueoLXy5mqWVE=; b=VPbM/I1a2HG/LAGD+pmjrgdUegBKGu96nf5C+G06I3Q9fn+RzqPIixCNbiEzYbfcSIdY+Z ooaTH+3FW8Mv6xkVX3BeZcqvSe9DZ3cl9NdIhlUTty7XHRc3bB2z4/kNHuApLtquPYdJKH FHZUpTzhl1xuV02IiAV2eSm8jGu6Zz8= X-MC-Unique: 6R0NKPu-NdmoCq1Gd1nDjw-1 From: Thomas Huth To: Alistair Francis , Bin Meng , Palmer Dabbelt , qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, Markus Armbruster , qemu-block@nongnu.org Subject: [PATCH] hw/misc/sifive_u_otp: Remove the deprecated OTP config with '-drive if=none' Date: Thu, 12 Jan 2023 09:29:51 +0100 Message-Id: <20230112082951.874492-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1673512261808100001 Content-Type: text/plain; charset="utf-8" '-drive if=3Dnone' is meant for configuring back-end devices only, so this got marked as deprecated in QEMU 6.2. Users should now only use the new way with '-drive if=3Dpflash' instead. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- docs/about/deprecated.rst | 6 ------ docs/about/removed-features.rst | 7 +++++++ hw/misc/sifive_u_otp.c | 7 ------- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 68d29642d7..bfe8148490 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -87,12 +87,6 @@ as short-form boolean values, and passed to plugins as `= `arg_name=3Don``. However, short-form booleans are deprecated and full explicit ``arg_name= =3Don`` form is preferred. =20 -``-drive if=3Dnone`` for the sifive_u OTP device (since 6.2) -'''''''''''''''''''''''''''''''''''''''''''''''''''''''''' - -Using ``-drive if=3Dnone`` to configure the OTP device of the sifive_u -RISC-V machine is deprecated. Use ``-drive if=3Dpflash`` instead. - ``-no-hpet`` (since 8.0) '''''''''''''''''''''''' =20 diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.= rst index c918cabd1a..b1cb15f3d9 100644 --- a/docs/about/removed-features.rst +++ b/docs/about/removed-features.rst @@ -422,6 +422,13 @@ the value is hexadecimal. That is, '0x20M' should be = written either as ``tty`` and ``parport`` used to be aliases for ``serial`` and ``parallel`` respectively. The actual backend names should be used instead. =20 +``-drive if=3Dnone`` for the sifive_u OTP device (removed in 8.0) +''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +Using ``-drive if=3Dnone`` to configure the OTP device of the sifive_u +RISC-V machine is deprecated. Use ``-drive if=3Dpflash`` instead. + + QEMU Machine Protocol (QMP) commands ------------------------------------ =20 diff --git a/hw/misc/sifive_u_otp.c b/hw/misc/sifive_u_otp.c index 6d7fdb040a..8965f5c22a 100644 --- a/hw/misc/sifive_u_otp.c +++ b/hw/misc/sifive_u_otp.c @@ -210,13 +210,6 @@ static void sifive_u_otp_realize(DeviceState *dev, Err= or **errp) sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->mmio); =20 dinfo =3D drive_get(IF_PFLASH, 0, 0); - if (!dinfo) { - dinfo =3D drive_get(IF_NONE, 0, 0); - if (dinfo) { - warn_report("using \"-drive if=3Dnone\" for the OTP is depreca= ted, " - "use \"-drive if=3Dpflash\" instead."); - } - } if (dinfo) { int ret; uint64_t perm; --=20 2.31.1