Bug 216407 - OF: unittest fails some tests on ppc and ppc64 (### dt-test ### end of unittest - 266 passed, 6 failed)
Summary: OF: unittest fails some tests on ppc and ppc64 (### dt-test ### end of unitte...
Status: NEW
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: PPC-64 (show other bugs)
Hardware: PPC-64 Linux
: P1 normal
Assignee: platform_ppc-64
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-24 17:56 UTC by Erhard F.
Modified: 2022-11-20 20:00 UTC (History)
1 user (show)

See Also:
Kernel Version: 6.0-rc2
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg (kernel 6.0-rc2, Talos II) (99.27 KB, text/plain)
2022-08-24 17:56 UTC, Erhard F.
Details
dmesg (kernel 6.0-rc2, PowerMac G4 DP) (69.21 KB, text/plain)
2022-08-24 17:58 UTC, Erhard F.
Details
kernel .config (kernel 6.0-rc2, Talos II) (113.42 KB, text/plain)
2022-08-24 18:00 UTC, Erhard F.
Details
kernel .config (kernel 6.0-rc2, PowerMac G4 DP) (110.08 KB, text/plain)
2022-08-24 18:01 UTC, Erhard F.
Details
dmesg (kernel 6.1-rc3, Talos II) (98.71 KB, text/plain)
2022-11-03 23:44 UTC, Erhard F.
Details
kernel .config (kernel 6.1-rc3, Talos II) (113.71 KB, text/plain)
2022-11-03 23:45 UTC, Erhard F.
Details
kernel dmesg (6.1-rc5, PowerMac G4 DP) (67.52 KB, text/plain)
2022-11-20 20:00 UTC, Erhard F.
Details

Description Erhard F. 2022-08-24 17:56:18 UTC
Created attachment 301645 [details]
dmesg (kernel 6.0-rc2, Talos II)

[...]
### dt-test ### end of unittest - 266 passed, 6 failed

Failing tests on my Talos II are:
### dt-test ### FAIL of_unittest_dma_ranges_one():927 of_dma_get_range: wrong phys addr 0x0000000000000000 (expecting 20000000) on node /testcase-data/address-tests/device@70000000
### dt-test ### FAIL of_unittest_dma_ranges_one():930 of_dma_get_range: wrong DMA addr 0x0000000020000000 (expecting 0) on node /testcase-data/address-tests/device@70000000
### dt-test ### FAIL of_unittest_dma_ranges_one():927 of_dma_get_range: wrong phys addr 0x0000000100000000 (expecting 20000000) on node /testcase-data/address-tests/bus@80000000/device@1000
### dt-test ### FAIL of_unittest_dma_ranges_one():930 of_dma_get_range: wrong DMA addr 0x0000000020000000 (expecting 100000000) on node /testcase-data/address-tests/bus@80000000/device@1000
### dt-test ### FAIL of_unittest_dma_ranges_one():927 of_dma_get_range: wrong phys addr 0x0000000080000000 (expecting 20000000) on node /testcase-data/address-tests/pci@90000000
### dt-test ### FAIL of_unittest_dma_ranges_one():930 of_dma_get_range: wrong DMA addr 0x0000000020000000 (expecting 80000000) on node /testcase-data/address-tests/pci@90000000

Failing tests on my PowerMac G4 MDD are:
### dt-test ### FAIL of_unittest_dma_ranges_one():927 of_dma_get_range: wrong phys addr 0x00000000 (expecting 20000000) on node /testcase-data/address-tests/device@70000000
### dt-test ### FAIL of_unittest_dma_ranges_one():930 of_dma_get_range: wrong DMA addr 0x20000000 (expecting 0) on node /testcase-data/address-tests/device@70000000
### dt-test ### FAIL of_unittest_dma_ranges_one():927 of_dma_get_range: wrong phys addr 0x80000000 (expecting 20000000) on node /testcase-data/address-tests/pci@90000000
### dt-test ### FAIL of_unittest_dma_ranges_one():930 of_dma_get_range: wrong DMA addr 0x20000000 (expecting 80000000) on node /testcase-data/address-tests/pci@90000000

Devices on my Talos II:
 # lspci 
0000:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
0000:01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Turks XT [Radeon HD 6670/7670]
0000:01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Turks HDMI Audio [Radeon HD 6500/6600 / 6700M Series]
0001:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
0001:01:00.0 Non-Volatile memory controller: Phison Electronics Corporation Device 5008 (rev 01)
0002:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
0003:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
0003:01:00.0 USB controller: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller (rev 02)
0004:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
0004:01:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
0004:01:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
0005:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
0005:01:00.0 PCI bridge: ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge (rev 04)
0005:02:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
0030:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
0031:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
0032:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
0033:00:00.0 PCI bridge: IBM POWER9 Host Bridge (PHB4)
Comment 1 Erhard F. 2022-08-24 17:58:00 UTC
Created attachment 301646 [details]
dmesg (kernel 6.0-rc2, PowerMac G4 DP)
Comment 2 Erhard F. 2022-08-24 18:00:28 UTC
Created attachment 301647 [details]
kernel .config (kernel 6.0-rc2, Talos II)
Comment 3 Erhard F. 2022-08-24 18:01:17 UTC
Created attachment 301648 [details]
kernel .config (kernel 6.0-rc2, PowerMac G4 DP)
Comment 4 Erhard F. 2022-11-03 23:44:49 UTC
Created attachment 303129 [details]
dmesg (kernel 6.1-rc3, Talos II)

No change on 6.1-rc3.

 # dmesg | grep FAIL
[   51.237023] ### dt-test ### FAIL of_unittest_dma_ranges_one():927 of_dma_get_range: wrong phys addr 0x0000000000000000 (expecting 20000000) on node /testcase-data/address-tests/device@70000000
[   51.237036] ### dt-test ### FAIL of_unittest_dma_ranges_one():930 of_dma_get_range: wrong DMA addr 0x0000000020000000 (expecting 0) on node /testcase-data/address-tests/device@70000000
[   51.237064] ### dt-test ### FAIL of_unittest_dma_ranges_one():927 of_dma_get_range: wrong phys addr 0x0000000100000000 (expecting 20000000) on node /testcase-data/address-tests/bus@80000000/device@1000
[   51.237078] ### dt-test ### FAIL of_unittest_dma_ranges_one():930 of_dma_get_range: wrong DMA addr 0x0000000020000000 (expecting 100000000) on node /testcase-data/address-tests/bus@80000000/device@1000
[   51.237117] ### dt-test ### FAIL of_unittest_dma_ranges_one():927 of_dma_get_range: wrong phys addr 0x0000000080000000 (expecting 20000000) on node /testcase-data/address-tests/pci@90000000
[   51.237128] ### dt-test ### FAIL of_unittest_dma_ranges_one():930 of_dma_get_range: wrong DMA addr 0x0000000020000000 (expecting 80000000) on node /testcase-data/address-tests/pci@90000000
Comment 5 Erhard F. 2022-11-03 23:45:33 UTC
Created attachment 303130 [details]
kernel .config (kernel 6.1-rc3, Talos II)
Comment 6 Erhard F. 2022-11-20 20:00:21 UTC
Created attachment 303242 [details]
kernel dmesg (6.1-rc5, PowerMac G4 DP)

On a PowerMac G4 DP:

[...]
### dt-test ### pass of_unittest_overlay_high_level():3443
### dt-test ### pass of_unittest_overlay_high_level():3446
### dt-test ### end of unittest - 265 passed, 4 failed

Note You need to log in before you can comment on or make changes to this bug.