[Bug 359867] New: update mv643xx_eth detection to fix gigabit on pegasos
https://bugzilla.novell.com/show_bug.cgi?id=359867 Summary: update mv643xx_eth detection to fix gigabit on pegasos Product: openSUSE 11.0 Version: Alpha 2 Platform: PowerPC OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: snwint@novell.com ReportedBy: olh@novell.com QAContact: qa@suse.de CC: power-bugs@forge.provo.novell.com Found By: --- the modalias content for mv643xx_eth changed from 'mv643xx_eth' to 'platform:mv643xx_eth' replace the '!strcmp' with 'strstr' should handle both cases. Index: hwinfo-14.1/src/hd/pci.c =================================================================== --- hwinfo-14.1.orig/src/hd/pci.c +++ hwinfo-14.1/src/hd/pci.c @@ -815,7 +815,7 @@ void hd_read_platform(hd_data_t *hd_data platform_type = canon_str(s, strlen(s)); ADD2LOG(" type = \"%s\"\n", platform_type); if( - !strcmp(platform_type, "mv643xx_eth") && + strstr(platform_type, "mv643xx_eth") && !mv643xx_eth_seen++ ) { add_mv643xx_eth(hd_data, platform_type); -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c1
--- Comment #1 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c2
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c3
Olaf Hering
net.1: get network data[New Thread 0x4801ff60 (LWP 2764)]
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x4801ff60 (LWP 2764)] 0x0fec711c in hd_scan_net (hd_data=0x1001a008) at net.c:263 263 if( #0 0x0fec711c in hd_scan_net (hd_data=0x1001a008) at net.c:263 #1 0x0fead164 in hd_scan_no_hal (hd_data=0x1001a008) at hd.c:2022 #2 0x0feaeabc in hd_scan (hd_data=0x1001a008) at hd.c:1831 #3 0x0feaf690 in hd_list (hd_data=0x1001a008, item=hw_network_ctrl, rescan=<value optimized out>, hd_old=0x0) at hd.c:3236 #4 0x10004b74 in do_hw (hd_data=0x1001a008, f=0x0, hw_item=hw_network_ctrl) at hwinfo.c:536 #5 0x1000699c in main (argc=<value optimized out>, argv=0xbfba7574) at hwinfo.c:357 (gdb) l 258 hd_card = hd_find_sysfs_id(hd_data, s); 259 } 260 } 261 262 /* if one card has several interfaces (as with PS3), check interface names, too */ 263 if( 264 hd->unix_dev_name && 265 hd_card->unix_dev_name && 266 strcmp(hd->unix_dev_name, hd_card->unix_dev_name) 267 ) { (gdb) p hd $1 = (hd_t *) 0x100765b0 (gdb) p *hd $2 = {next = 0x0, idx = 24, broken = 0, bus = {id = 0, name = 0x0}, slot = 0, func = 0, base_class = {id = 263, name = 0x0}, sub_class = {id = 1, name = 0x0}, prog_if = {id = 0, name = 0x0}, vendor = {id = 0, name = 0x0}, device = {id = 0, name = 0x0}, sub_vendor = {id = 0, name = 0x0}, sub_device = {id = 0, name = 0x0}, revision = {id = 0, name = 0x0}, serial = 0x0, compat_vendor = {id = 0, name = 0x0}, compat_device = {id = 0, name = 0x0}, hw_class = hw_none, hw_class_list = "\000\000\000\000\000\000", model = 0x0, attached_to = 0, sysfs_id = 0x10076758 "/class/net/eth0", sysfs_bus_id = 0x0, sysfs_device_link = 0x10076780 "/devices/platform/mv643xx_eth.1", unix_dev_name = 0x10076748 "eth0", unix_dev_num = {type = 0, major = 0, minor = 0, range = 0}, unix_dev_names = 0x0, unix_dev_name2 = 0x0, unix_dev_num2 = {type = 0, major = 0, minor = 0, range = 0}, rom_id = 0x0, udi = 0x0, parent_udi = 0x0, unique_id = 0x0, unique_ids = 0x0, module = 5, line = 124, count = 0, res = 0x10076580, detail = 0x0, extra_info = 0x0, status = {invalid = 0, reconfig = 0, configured = 0, available = 0, needed = 0, available_orig = 0, active = 0}, config_string = 0x0, hotplug = hp_none, hotplug_slot = 0, is = {agp = 0, isapnp = 0, notready = 0, manual = 0, softraiddisk = 0, zip = 0, cdr = 0, cdrw = 0, dvd = 0, dvdr = 0, dvdrw = 0, dvdpr = 0, dvdprw = 0, dvdprdl = 0, dvdram = 0, pppoe = 0, wlan = 0, with_acpi = 0, hotpluggable = 0}, tag = {remove = 0, freeit = 0, fixed = 0, ser_skip = 0, ser_device = 0}, block0 = 0x0, driver = 0x0, driver_module = 0x0, drivers = 0x10076770, driver_modules = 0x0, old_unique_id = 0x0, parent_id = 0x0, child_ids = 0x0, unique_id1 = 0x0, usb_guid = 0x0, driver_info = 0x0, requires = 0x0, hal_prop = 0x0, persistent_prop = 0x0, modalias = 0x0, ref_cnt = 0, ref = 0x0} (gdb) p hd_card $3 = (hd_t *) 0x0 (gdb) p *hd_card Cannot access memory at address 0x0 (gdb) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=359867
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c4
--- Comment #4 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c5
--- Comment #5 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c6
--- Comment #6 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c7
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c8
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c9
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c10
--- Comment #10 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c11
--- Comment #11 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c12
--- Comment #12 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c13
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c14
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c15
--- Comment #15 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c17
--- Comment #17 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c18
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c19
--- Comment #19 from Steffen Winterfeldt
pci.7: platform*** glibc detected *** ./hwinfo: realloc(): invalid pointer: 0xbfc2f57c *** Aborted
I don't think the patch works. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c20
--- Comment #20 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c21
--- Comment #21 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c22
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c23
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c24
--- Comment #24 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c25
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c26
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User olh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c27
--- Comment #27 from Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=359867
User snwint@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359867#c28
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=359867
Olaf Hering
participants (1)
-
bugzilla_noreply@novell.com