From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61622C32771 for ; Wed, 22 Jan 2020 06:51:53 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3108824656 for ; Wed, 22 Jan 2020 06:51:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XKPCECOI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3108824656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:37578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu9rj-00069M-KP for qemu-devel@archiver.kernel.org; Wed, 22 Jan 2020 01:51:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36025) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu9q1-0004Dm-8C for qemu-devel@nongnu.org; Wed, 22 Jan 2020 01:50:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iu9q0-0007mp-0y for qemu-devel@nongnu.org; Wed, 22 Jan 2020 01:50:05 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:35789 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iu9pz-0007mN-U2 for qemu-devel@nongnu.org; Wed, 22 Jan 2020 01:50:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579675803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OhMnOXw2jltLb3g6o0bZN0GY8d9d1JsgKnb3ojyU5uY=; b=XKPCECOIYCNN5ELf1rOb4s8RxaUTT5BZzpU4C06ngcrAAPfuuTYM2v5oscFtf8jbmKEPqL fKYs4lfE7JcPJkvPTbgV6dMGNUuMAG7DhFZs6qPsTSASK1AOAsNO7cH+x0RcmUn5RjSE2o 7i9T2YTpZzV8RlL/HKHcUSvhcenH/3k= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-181-5o02YcEENCSAkhOHlraSHQ-1; Wed, 22 Jan 2020 01:50:01 -0500 Received: by mail-wr1-f69.google.com with SMTP id c17so2593422wrp.10 for ; Tue, 21 Jan 2020 22:50:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SmP96JjZ61jUtUgNUruj35mPI4zb3UYO5pk5xajyjow=; b=DWwcm1HA9DS/L4CBCy06jTCqwxbY1BE512YlXHEgXvnBZe6X63KQtu4JMtNIjHNweX R2JJN3b3IiOG3rtWsGCYZtuOU5whC1VBTxZoFdSU+Nk41jJJ+I5s2t2C0X9p5agxI2aG GDcW6xgogF/yzOLfn5CRS9qIjbuWqZ0HLUCKPv/yf3C+8RZx6k7sYEmvSsQJpMw6w+Gc h6vVymveFYZvD5n3bQg8sz1s898bbqQXffC3BMUe9WEShpeUdaSUFXZe9ADslrpd2S8r 0hslTzPnGPekFyz7lR5mwOsuO6EwQLJ0Bc3Vx3m2eXLx3Qa3Mgmxe8oqGS6RUMeT3hI1 AF8A== X-Gm-Message-State: APjAAAWJL3fRWWAgkZmvcYmwqc4/7H8UUwF7DkU7XABti82PvUNXPjrc g5qE1XaEY0qwOtiofLlsiN+MXM64QBCyKeR0tKVPRkzuuIB5b3KTcCkjTpXLrXj9YlcW6bQdRXt 3qx2rGA13YpLXJdg= X-Received: by 2002:a5d:6a02:: with SMTP id m2mr9301023wru.52.1579675799777; Tue, 21 Jan 2020 22:49:59 -0800 (PST) X-Google-Smtp-Source: APXvYqz/z4TBfVfpzHdyQUXU8UAQxjV4KrXxGxYxakvbRkT1DN4c8z2JdmwGrjJqoE32nvTFYJqpcw== X-Received: by 2002:a5d:6a02:: with SMTP id m2mr9301007wru.52.1579675799548; Tue, 21 Jan 2020 22:49:59 -0800 (PST) Received: from redhat.com (bzq-79-176-0-156.red.bezeqint.net. [79.176.0.156]) by smtp.gmail.com with ESMTPSA id c9sm1926408wme.41.2020.01.21.22.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 22:49:59 -0800 (PST) Date: Wed, 22 Jan 2020 01:49:57 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Subject: [PULL v2 03/17] acpi: cpuhp: spec: clarify 'CPU selector' register usage and endianness Message-ID: <20200122064907.512501-4-mst@redhat.com> References: <20200122064907.512501-1-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20200122064907.512501-1-mst@redhat.com> X-Mailer: git-send-email 2.24.1.751.gd10ce2899c X-Mutt-Fcc: =sent X-MC-Unique: 5o02YcEENCSAkhOHlraSHQ-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Laszlo Ersek , Igor Mammedov Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Igor Mammedov * Move reserved registers to the top of the section, so reader would be aware of effects when reading registers description. * State registers endianness explicitly at the beginning of the section * Describe registers behavior in case of 'CPU selector' register contains value that doesn't point to a possible CPU. Signed-off-by: Igor Mammedov Reviewed-by: Laszlo Ersek Message-Id: <1575896942-331151-5-git-send-email-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- docs/specs/acpi_cpu_hotplug.txt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/specs/acpi_cpu_hotplug.txt b/docs/specs/acpi_cpu_hotplug.= txt index ee219c8358..4e65286ff5 100644 --- a/docs/specs/acpi_cpu_hotplug.txt +++ b/docs/specs/acpi_cpu_hotplug.txt @@ -30,6 +30,18 @@ Register block base address: Register block size: ACPI_CPU_HOTPLUG_REG_LEN =3D 12 =20 +All accesses to registers described below, imply little-endian byte order. + +Reserved resisters behavior: + - write accesses are ignored + - read accesses return all bits set to 0. + +The last stored value in 'CPU selector' must refer to a possible CPU, othe= rwise + - reads from any register return 0 + - writes to any other register are ignored until valid value is stored i= nto it +On QEMU start, 'CPU selector' is initialized to a valid value, on reset it +keeps the current value. + read access: offset: [0x0-0x3] reserved @@ -86,9 +98,3 @@ write access: ACPI_DEVICE_OST QMP event from QEMU to external applicati= ons with current values of OST event and status registers. other values: reserved - -Selecting CPU device beyond possible range has no effect on platform: - - write accesses to CPU hot-plug registers not documented above are - ignored - - read accesses to CPU hot-plug registers not documented above return - all bits set to 0. --=20 MST