From patchwork Wed Jan 18 09:40:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 643680 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp1655785pvb; Wed, 18 Jan 2023 01:40:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXvGmclUIq+Za8zQ/MafQEA4XSUETIwoBr7P3k42SDDNcymiPQNsB1hdppiNQniDR5p117E+ X-Received: by 2002:a05:622a:1ccd:b0:3b6:3ca2:dde8 with SMTP id bc13-20020a05622a1ccd00b003b63ca2dde8mr7360704qtb.67.1674034856884; Wed, 18 Jan 2023 01:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674034856; cv=none; d=google.com; s=arc-20160816; b=j2FFDt+ZMiGELc2IzPOMMh8o67VEq8wc0Af1h6t8aDwefUD3A1yEcELrjVAgRxYX8Z 5n2l/BGXZ7XY4Z7JjkSR4KHs9M8+oGxeTq6gSSy67O8CWgBXfrZZq65qEMbBpVwFKdMw xZQF7hRIfGmDdsHyLOr4+iPMnX4djL6OoSvq5THX2CPRRQ+KrMoLji25WIFLD5NRmR9K dP/FF3XD8zAPC+FP++cX6+PvTXFW/+2jy4YLgGuhfmewXpYSXrfb65OmnRAqTuRv2KYk 1geWiJ1VIYrDLWv0D/C0XU8FzLEaK5MT95aObqexFj2YwZrvtWfxfoN1Z2Hrc8YT3Uc4 HUsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=hMx4ObyQZvfXNHVXseA6sfMXGxrN1K9oubpKC+KJIoc=; b=J6WfF0blKAymqMOn11eCHuuNgjysjNhabh4MDQm+ueXSZBGntAR/ISWdhbd8aaH/Sr HNGyVnPcELIBv4CfkGhTuBg4De9ThMOBmpy9hThQHKUGj0QmMbCfrdqpINOhAQuxYe82 6oh5mhFp95p2aI3XYmLLhpszZGulrekNwcfGUNtnmRK62jFZBKndjRSaAPcxdlgKwL8/ cY4X3lmfBnqg0GY7O3Y0YKrqgJ6xSrGzOa/9TOyU3LKrHk/LOcmlivSomXflA7AIxaWN TXACg973tACXrCthvJ0q6W9fYlt8P0zlwWTIy0AiL1HXwTJnHnuSto4OZkWkC7aTyvhG dy5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H8azJ0z+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a9-20020a05620a124900b00706b0e6a2ecsi1251730qkl.218.2023.01.18.01.40.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Jan 2023 01:40:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H8azJ0z+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pI4vn-0000RN-1y; Wed, 18 Jan 2023 04:40:31 -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 1pI4vl-0000Lt-0e for qemu-devel@nongnu.org; Wed, 18 Jan 2023 04:40:29 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pI4vj-0003P7-CL for qemu-devel@nongnu.org; Wed, 18 Jan 2023 04:40:28 -0500 Received: by mail-wm1-x331.google.com with SMTP id q8so12397665wmo.5 for ; Wed, 18 Jan 2023 01:40:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hMx4ObyQZvfXNHVXseA6sfMXGxrN1K9oubpKC+KJIoc=; b=H8azJ0z+PQE5pfP4mjTXkIIextd+N+pFWZQ/3X6fs9UhSSxyXEZa/25TqVAgBrB9Qa yh14bY6M2lYVc/woPNNa+3tKBqJKwIpNVqg8xcMzxW9QsHr0Z0fr2PpL2iZey3b3od3d E2rKDKswgHfnDddf2FM9JdFFiFlQiHiqhP44B/1UytUj3DWnrkSaOafYKvWATcwnUz0K J76Uf/yc3E00wBvBo2QNdOFsA5CS112LF+PXr2bBg8JBxVhWeFd3cQIKCknetUKqgWam B5nFtUiA60o+hidPB2py7ucZJMRoNoBKvf53UmY1vNTZHV/XylMUqiBYwyprv6fl2aDV aTxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hMx4ObyQZvfXNHVXseA6sfMXGxrN1K9oubpKC+KJIoc=; b=intek+8seuO2Z2XaN3bceFoInxPeG1dGIOy6VZr7DAhPiscnAOTtj6FMgTqsV1VQDH eLbodzhWaBBRGjiKIpkeWI/rMsfd0rP8x8sV3xcT2X0XJMEJPEWqlDm87TsbbCRXfAD3 ZcrVPQIC/URSpp2xXsR1jaBmI0s1sAKA55BCWzn+NuiBRVYmtBuxUmjgPqwNeY4yrdAw d2Gxvbvlqz+yn63/fmlxvFuTlGAY+1ST1wZUmRBR34fqPteMimOublDZo77WELUqA4Ju 3WPvieN+aTi1k8Um/zBLmrFsNL9J4JUc+zCwa7a2ml4zZtZYpxXG3S+D8KoyuKNqQAfb aFmg== X-Gm-Message-State: AFqh2kpL4XXpxUqnlWB58PqH/8+67Wq3o6Lalen+kR2v07a7GmNuvH9J reskdluOurb88D99x7QIHR/9vjkcUwMEuGCF X-Received: by 2002:a05:600c:444b:b0:3da:fd06:a6f1 with SMTP id v11-20020a05600c444b00b003dafd06a6f1mr5842289wmn.31.1674034825567; Wed, 18 Jan 2023 01:40:25 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id r6-20020a1c2b06000000b003a6125562e1sm1319554wmr.46.2023.01.18.01.40.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 18 Jan 2023 01:40:25 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , Beraldo Leal , Aurelien Jarno , Wainer dos Santos Moschetta , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , Klaus Jensen , Cleber Rosa Subject: [PATCH 0/2] hw/pci-host/gt64120: Fix regression on big-endian targets Date: Wed, 18 Jan 2023 10:40:21 +0100 Message-Id: <20230118094023.49517-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.google.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, 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_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Klauss reported a regression on big-endian targets, introduced by commit 145e2198d749 ("hw/mips/gt64xxx_pci: Endian-swap using PCI_HOST_BRIDGE MemoryRegionOps"). Fix it and add the Klauss' reproducer as Avocado test. Philippe Mathieu-Daudé (2): hw/pci-host/gt64120: Fix PCI I/O config register endianness tests/avocado: Add test accessing NVMe on big-endian MIPS target hw/pci-host/gt64120.c | 25 +++++----------- tests/avocado/boot_linux_console.py | 44 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 18 deletions(-)