Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jfty7-0000ef-Ju for mharc-qemu-trivial@gnu.org; Mon, 01 Jun 2020 19:35:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfty6-0000dD-LF for qemu-trivial@nongnu.org; Mon, 01 Jun 2020 19:35:46 -0400 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:39134) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfty5-0004nv-BU for qemu-trivial@nongnu.org; Mon, 01 Jun 2020 19:35:46 -0400 Received: by mail-pj1-x1044.google.com with SMTP id h95so533259pje.4 for ; Mon, 01 Jun 2020 16:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=X4I89W39vWdVNoghag0DFn1ebCW1eil3jLJKcfTKZ5M=; b=Rz09eZ1jDr2GqUZY/02LI/v+G4Mymsh044uItJIu+SnTWqBOlAr+pJ1tg3MAcjFFs1 Wl6k+fmHMq6vXzx2AY0IPGk7NZeU4+E1Sdxl6Mw5AoL9jND4oWQZEQZD+r57AvzHYH/N NuhvsCmxF/i2/oBgKNFahnAkMkXFOc81T1dqP9gwS5GJh/0SPKNFan23YgZ6NQ73MEYJ qtizNevWe96Vk8MzhSZxh7Hzp13L2QEO5pK/Ckpe0BVTVtsiYNZzxunfsbyOeIti92AR Gv4QktnI7lS9pbKOOeJaYUI0JaAylDORYJBmQBzWNsCRniPV5I/JXtMFJ7Pws0xd4Q6l nS0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=X4I89W39vWdVNoghag0DFn1ebCW1eil3jLJKcfTKZ5M=; b=WZXRHITBonldT8zJFy672CemJYOnQIjvmQaKLsi4ZVIlVMoiCwrxcGWrTwfAXaPrHd DqxbxBmZ8k2A3ujG8ythIIaK/UpeL9C23SnxDfSK1oMJNuvkHmXKb8UgHSGt7V5arJ9+ Q0x/N+NoyfbYBghtz5UK3pRwRS6BbNbsojI/3Nw/dT6ObFUMzkZxVQXZ0S6RX7AtNWEL WPbypmyH4RY+tLph19xz1dIIqOF2hC2NcYLKMbfpXGwUicsaRh7YI2GeW5EdRUMMZ3yu TotxIzK+uJkF5S8DN5UWqoptfVm7qJCL3wZ6DpQ8bO3nGBBCdeSBUp25vC/vYousxlrz OJ8g== X-Gm-Message-State: AOAM530U7axIi6E4XK13zd8nEARd7X38PztWowwiYhd2lT6aFP6Ob5pA W7lC4D3k8thXT9sSCqmgCEy5RA== X-Google-Smtp-Source: ABdhPJxfVrNnYPK0N8OZPuZkt0Nk1A1urRieu/jIbg1ZT2QBbNMgMrB6P433MN9FZD6oMK1YrM174A== X-Received: by 2002:a17:902:7896:: with SMTP id q22mr23251618pll.216.1591054543738; Mon, 01 Jun 2020 16:35:43 -0700 (PDT) Received: from [192.168.1.11] (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id z1sm441635pfr.88.2020.06.01.16.35.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Jun 2020 16:35:43 -0700 (PDT) Subject: Re: [PATCH v2 2/8] hw/pci-host/prep: Correct RAVEN bus bridge memory region size To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Peter Maydell , Stefano Stabellini , Eduardo Habkost , "Michael S. Tsirkin" , Andrew Jeffery , Helge Deller , Paul Durrant , qemu-trivial@nongnu.org, qemu-arm@nongnu.org, =?UTF-8?Q?Herv=c3=a9_Poussineau?= , Joel Stanley , Paolo Bonzini , Anthony Perard , xen-devel@lists.xenproject.org, Richard Henderson , qemu-ppc@nongnu.org, =?UTF-8?Q?C=c3=a9dric_Le_Goater?= References: <20200601142930.29408-1-f4bug@amsat.org> <20200601142930.29408-3-f4bug@amsat.org> From: Richard Henderson Message-ID: <92a1fda6-0ee9-e7f2-7248-b79c01c7b2e3@linaro.org> Date: Mon, 1 Jun 2020 16:35:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200601142930.29408-3-f4bug@amsat.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1044; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1044.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2020 23:35:46 -0000 On 6/1/20 7:29 AM, Philippe Mathieu-Daudé wrote: > memory_region_set_size() handle the 16 Exabytes limit by > special-casing the UINT64_MAX value. This is not a problem > for the 32-bit maximum, 4 GiB. > By using the UINT32_MAX value, the bm-raven MemoryRegion > ends up missing 1 byte: > > $ qemu-system-ppc -M prep -S -monitor stdio -usb > memory-region: bm-raven > 0000000000000000-00000000fffffffe (prio 0, i/o): bm-raven > 0000000000000000-000000003effffff (prio 0, i/o): alias bm-pci-memory @pci-memory 0000000000000000-000000003effffff > 0000000080000000-00000000ffffffff (prio 0, i/o): alias bm-system @system 0000000000000000-000000007fffffff > > Fix by using the correct value. We now have: > > memory-region: bm-raven > 0000000000000000-00000000ffffffff (prio 0, i/o): bm-raven > 0000000000000000-000000003effffff (prio 0, i/o): alias bm-pci-memory @pci-memory 0000000000000000-000000003effffff > 0000000080000000-00000000ffffffff (prio 0, i/o): alias bm-system @system 0000000000000000-000000007fffffff > > Reviewed-by: Peter Maydell > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/pci-host/prep.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Richard Henderson r~