* [PATCH 0/1] Sending small fix for NPCM GMAC test to properly test on Nuvoton 7xx
@ 2024-02-06 23:23 Nabih Estefan
2024-02-06 23:23 ` [PATCH 1/1] tests/qtest: Fixing GMAC test to run in 7xx Nabih Estefan
2024-02-08 14:43 ` [PATCH 0/1] Sending small fix for NPCM GMAC test to properly test on Nuvoton 7xx Peter Maydell
0 siblings, 2 replies; 4+ messages in thread
From: Nabih Estefan @ 2024-02-06 23:23 UTC (permalink / raw)
To: peter.maydell
Cc: qemu-arm, qemu-devel, kfting, wuhaotsh, jasowang, avi.fishman,
nabihestefan, kwliu, tomer.maimon, Hila.Miranda-Kuzi
Nabih Estefan (1):
tests/qtest: Fixing GMAC test to run in 7xx
tests/qtest/meson.build | 4 ++--
tests/qtest/npcm_gmac-test.c | 12 ++----------
2 files changed, 4 insertions(+), 12 deletions(-)
--
2.43.0.594.gd9cf4e227d-goog
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] tests/qtest: Fixing GMAC test to run in 7xx
2024-02-06 23:23 [PATCH 0/1] Sending small fix for NPCM GMAC test to properly test on Nuvoton 7xx Nabih Estefan
@ 2024-02-06 23:23 ` Nabih Estefan
2024-02-07 0:39 ` KFTING
2024-02-08 14:43 ` [PATCH 0/1] Sending small fix for NPCM GMAC test to properly test on Nuvoton 7xx Peter Maydell
1 sibling, 1 reply; 4+ messages in thread
From: Nabih Estefan @ 2024-02-06 23:23 UTC (permalink / raw)
To: peter.maydell
Cc: qemu-arm, qemu-devel, kfting, wuhaotsh, jasowang, avi.fishman,
nabihestefan, kwliu, tomer.maimon, Hila.Miranda-Kuzi
Fixing the nocm_gmac-test.c file to run on a nuvoton 7xx machine instead
of 8xx. Also fixing comments referencing this and values expecting 8xx.
Change-Id: I07b91e8be473e6a1ece65a2202608b52ed4025b8
Signed-Off-By: Nabih Estefan <nabihestefan@google.com>
---
tests/qtest/meson.build | 4 ++--
tests/qtest/npcm_gmac-test.c | 12 ++----------
2 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 39557d5ecb..2b89e8634b 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -192,7 +192,8 @@ qtests_npcm7xx = \
'npcm7xx_sdhci-test',
'npcm7xx_smbus-test',
'npcm7xx_timer-test',
- 'npcm7xx_watchdog_timer-test'] + \
+ 'npcm7xx_watchdog_timer-test',
+ 'npcm_gmac-test'] + \
(slirp.found() ? ['npcm7xx_emc-test'] : [])
qtests_aspeed = \
['aspeed_hace-test',
@@ -231,7 +232,6 @@ qtests_aarch64 = \
(config_all_devices.has_key('CONFIG_RASPI') ? ['bcm2835-dma-test'] : []) + \
(config_all_accel.has_key('CONFIG_TCG') and \
config_all_devices.has_key('CONFIG_TPM_TIS_I2C') ? ['tpm-tis-i2c-test'] : []) + \
- (config_all_devices.has_key('CONFIG_NPCM7XX') ? qtests_npcm7xx : []) + \
['arm-cpu-features',
'numa-test',
'boot-serial-test',
diff --git a/tests/qtest/npcm_gmac-test.c b/tests/qtest/npcm_gmac-test.c
index 9e58b15ca1..0d1bc8107b 100644
--- a/tests/qtest/npcm_gmac-test.c
+++ b/tests/qtest/npcm_gmac-test.c
@@ -36,7 +36,7 @@ typedef struct TestData {
const GMACModule *module;
} TestData;
-/* Values extracted from hw/arm/npcm8xx.c */
+/* Values extracted from hw/arm/npcm7xx.c */
static const GMACModule gmac_module_list[] = {
{
.irq = 14,
@@ -46,14 +46,6 @@ static const GMACModule gmac_module_list[] = {
.irq = 15,
.base_addr = 0xf0804000
},
- {
- .irq = 16,
- .base_addr = 0xf0806000
- },
- {
- .irq = 17,
- .base_addr = 0xf0808000
- }
};
/* Returns the index of the GMAC module. */
@@ -196,7 +188,7 @@ static void test_init(gconstpointer test_data)
{
const TestData *td = test_data;
const GMACModule *mod = td->module;
- QTestState *qts = qtest_init("-machine npcm845-evb");
+ QTestState *qts = qtest_init("-machine npcm750-evb");
#define CHECK_REG32(regno, value) \
do { \
--
2.43.0.594.gd9cf4e227d-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH 1/1] tests/qtest: Fixing GMAC test to run in 7xx
2024-02-06 23:23 ` [PATCH 1/1] tests/qtest: Fixing GMAC test to run in 7xx Nabih Estefan
@ 2024-02-07 0:39 ` KFTING
0 siblings, 0 replies; 4+ messages in thread
From: KFTING @ 2024-02-07 0:39 UTC (permalink / raw)
To: Nabih Estefan, peter.maydell@linaro.org
Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, wuhaotsh@google.com,
jasowang@redhat.com, Avi.Fishman@nuvoton.com, KWLIU@nuvoton.com,
tomer.maimon@nuvoton.com, Hila.Miranda-Kuzi@nuvoton.com
-----Original Message-----
From: Nabih Estefan <nabihestefan@google.com>
Sent: Wednesday, February 7, 2024 7:24 AM
To: peter.maydell@linaro.org
Cc: qemu-arm@nongnu.org; qemu-devel@nongnu.org; CS20 KFTing <KFTING@nuvoton.com>; wuhaotsh@google.com; jasowang@redhat.com; IS20 Avi Fishman <Avi.Fishman@nuvoton.com>; nabihestefan@google.com; CS20 KWLiu <KWLIU@nuvoton.com>; IS20 Tomer Maimon <tomer.maimon@nuvoton.com>; IN20 Hila Miranda-Kuzi <Hila.Miranda-Kuzi@nuvoton.com>
Subject: [PATCH 1/1] tests/qtest: Fixing GMAC test to run in 7xx
CAUTION - External Email: Do not click links or open attachments unless you acknowledge the sender and content.
Fixing the nocm_gmac-test.c file to run on a nuvoton 7xx machine instead of 8xx. Also fixing comments referencing this and values expecting 8xx.
Change-Id: I07b91e8be473e6a1ece65a2202608b52ed4025b8
Signed-Off-By: Nabih Estefan <nabihestefan@google.com>
Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
---
tests/qtest/meson.build | 4 ++--
tests/qtest/npcm_gmac-test.c | 12 ++----------
2 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build index 39557d5ecb..2b89e8634b 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -192,7 +192,8 @@ qtests_npcm7xx = \
'npcm7xx_sdhci-test',
'npcm7xx_smbus-test',
'npcm7xx_timer-test',
- 'npcm7xx_watchdog_timer-test'] + \
+ 'npcm7xx_watchdog_timer-test',
+ 'npcm_gmac-test'] + \
(slirp.found() ? ['npcm7xx_emc-test'] : []) qtests_aspeed = \
['aspeed_hace-test',
@@ -231,7 +232,6 @@ qtests_aarch64 = \
(config_all_devices.has_key('CONFIG_RASPI') ? ['bcm2835-dma-test'] : []) + \
(config_all_accel.has_key('CONFIG_TCG') and \
config_all_devices.has_key('CONFIG_TPM_TIS_I2C') ? ['tpm-tis-i2c-test'] : []) + \
- (config_all_devices.has_key('CONFIG_NPCM7XX') ? qtests_npcm7xx : []) + \
['arm-cpu-features',
'numa-test',
'boot-serial-test',
diff --git a/tests/qtest/npcm_gmac-test.c b/tests/qtest/npcm_gmac-test.c index 9e58b15ca1..0d1bc8107b 100644
--- a/tests/qtest/npcm_gmac-test.c
+++ b/tests/qtest/npcm_gmac-test.c
@@ -36,7 +36,7 @@ typedef struct TestData {
const GMACModule *module;
} TestData;
-/* Values extracted from hw/arm/npcm8xx.c */
+/* Values extracted from hw/arm/npcm7xx.c */
static const GMACModule gmac_module_list[] = {
{
.irq = 14,
@@ -46,14 +46,6 @@ static const GMACModule gmac_module_list[] = {
.irq = 15,
.base_addr = 0xf0804000
},
- {
- .irq = 16,
- .base_addr = 0xf0806000
- },
- {
- .irq = 17,
- .base_addr = 0xf0808000
- }
};
/* Returns the index of the GMAC module. */ @@ -196,7 +188,7 @@ static void test_init(gconstpointer test_data) {
const TestData *td = test_data;
const GMACModule *mod = td->module;
- QTestState *qts = qtest_init("-machine npcm845-evb");
+ QTestState *qts = qtest_init("-machine npcm750-evb");
#define CHECK_REG32(regno, value) \
do { \
--
2.43.0.594.gd9cf4e227d-goog
________________________________
________________________________
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/1] Sending small fix for NPCM GMAC test to properly test on Nuvoton 7xx
2024-02-06 23:23 [PATCH 0/1] Sending small fix for NPCM GMAC test to properly test on Nuvoton 7xx Nabih Estefan
2024-02-06 23:23 ` [PATCH 1/1] tests/qtest: Fixing GMAC test to run in 7xx Nabih Estefan
@ 2024-02-08 14:43 ` Peter Maydell
1 sibling, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2024-02-08 14:43 UTC (permalink / raw)
To: Nabih Estefan
Cc: qemu-arm, qemu-devel, kfting, wuhaotsh, jasowang, avi.fishman,
kwliu, tomer.maimon, Hila.Miranda-Kuzi
On Tue, 6 Feb 2024 at 23:23, Nabih Estefan <nabihestefan@google.com> wrote:
>
>
> Nabih Estefan (1):
> tests/qtest: Fixing GMAC test to run in 7xx
This fails "make check". Perhaps you forgot to configure QEMU with
the arm-softmmu target enabled when doing your build and test?
=================================== 34/357 ===================================
test: qemu:qtest+qtest-arm / qtest-arm/npcm_gmac-test
start time: 14:32:48
duration: 0.34s
result: killed by signal 6 SIGABRT
command: MALLOC_PERTURB_=46 QTEST_QEMU_BINARY=./qemu-system-arm
PYTHON=/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/arm-clang/pyvenv/bin/python3
QTEST_QEMU_IMG=./qemu-img
QTEST_QEMU_STORAGE_DAEMON_BINARY=./storage-daemon/qemu-storage-daemon
G_TEST_DBUS_DAEMON=/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/tests/dbus-vmstate-daemon.sh
/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/arm-clang/tests/qtest/npcm_gmac-test
--tap -k
----------------------------------- stdout -----------------------------------
# random seed: R02S12ecd459925511b522511dd789dfb6d8
1..2
# Start of arm tests
# Start of npcm7xx_gmac tests
# Start of gmac[0] tests
# starting QEMU: exec ./qemu-system-arm -qtest
unix:/tmp/qtest-797739.sock -qtest-log /dev/null -chardev
socket,path=/tmp/qtest-797739.qmp,id=char0 -mon
chardev=char0,mode=control -display none -audio none -machine
npcm750-evb -accel qtest
Bail out! ERROR:../../tests/qtest/npcm_gmac-test.c:254:test_init:
assertion failed (pcs_read(qts, mod, (NPCM_PCS_SR_CTL_ID1)) ==
(0x699e)): (0x00000000 == 0x0000699e)
----------------------------------- stderr -----------------------------------
**
ERROR:../../tests/qtest/npcm_gmac-test.c:254:test_init: assertion
failed (pcs_read(qts, mod, (NPCM_PCS_SR_CTL_ID1)) == (0x699e)):
(0x00000000 == 0x0000699e)
(test program exited with status code -6)
==============================================================================
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-08 14:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-06 23:23 [PATCH 0/1] Sending small fix for NPCM GMAC test to properly test on Nuvoton 7xx Nabih Estefan
2024-02-06 23:23 ` [PATCH 1/1] tests/qtest: Fixing GMAC test to run in 7xx Nabih Estefan
2024-02-07 0:39 ` KFTING
2024-02-08 14:43 ` [PATCH 0/1] Sending small fix for NPCM GMAC test to properly test on Nuvoton 7xx Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).