Re: CVS commit: src/sys/arch
On 13.04.12 19:58, Nicolas Joly wrote: > On Fri, Apr 13, 2012 at 01:11:17PM +, Christoph Egger wrote: >> Module Name: src >> Committed By:cegger >> Date:Fri Apr 13 13:11:17 UTC 2012 >> >> Modified Files: >> src/sys/arch/amd64/conf: GENERIC XEN3_DOM0 >> src/sys/arch/i386/conf: ALL GENERIC XEN3_DOM0 >> src/sys/arch/x86/pci: amdtemp.c files.pci >> Added Files: >> src/sys/arch/x86/pci: amdnb_misc.c >> >> Log Message: >> Replace amdtempbus with amdnb_miscbus. >> This allows us to have independent drivers on the same device (northbridge >> f3) >> each coming with a certain functionality/feature. >> This way we do not need to mess with amdtemp(4) to utilize other features. > > Hi Christoph, > > This change seems incomplete. You removed the amdtempbus definition > from files.pci but a few uses remains : > > njoly@lynche [arch/x86]> pwd > /local/src/NetBSD/src/sys/arch/x86 > njoly@lynche [arch/x86]> grep amdtempbus **/* > pci/pchb.c:static void pchb_amdtempbus_configure(struct pchb_softc > *); > pci/pchb.c: pchb_amdtempbus_configure(sc); > pci/pchb.c: if (ifattr_match(ifattr,"amdtempbus")) > pci/pchb.c: pchb_amdtempbus_configure(sc); > pci/pchb.c: if (sc->sc_amdtempbus == child) { > pci/pchb.c: sc->sc_amdtempbus = NULL; > pci/pchb.c:pchb_amdtempbus_configure(struct pchb_softc *sc) > pci/pchb.c: if (sc->sc_amdtempbus != NULL) > pci/pchb.c: sc->sc_amdtempbus = > config_found_ia(sc->sc_dev,"amdtempbus",&sc->sc_pa,NULL); > pci/pchbvar.h: device_t sc_amdtempbus; oh, I wasn't aware of that at all. Actually I am tempted to revert rev 1.32 of pci/pchb.c. But I want to test that change on monday first before I commit that then. > And this makes my kernel panic as soon as it tries to search for > childs in pchb(4) configuration : > > [...] > ipmi0 at mainbus0 > pci0 at mainbus0 bus 0: configuration mode 1 > pchb0 at pci0 dev 0 function 0: ATI Technologies RD890 North Bridge Dual Slot > 2x16 GFX (rev. 0x02) > panic: kernel diagnostic assertion "!ifattr || > cfdriver_get_iattr(parent->dv_cfdriver,ifattr)"failed: file > "/local/src/NetBSD/src/sys/kern/subr_autoconf.c",line 945 > fatal breakpoint trap in supervisor mode > trap type 1 code 0 rip 80254b25 cs 8 rflags 246 cr2 0 cpl 8 rsp > 8133c830 > Stopped in pid 0.1 (system) at netbsd:breakpoint+0x5: leave > db{0}> bt > breakpoint() at netbsd:breakpoint+0x5 > vpanic() at netbsd:vpanic+0x1f2 > kern_assert() at netbsd:kern_assert+0x48 > config_search_loc() at netbsd:config_search_loc+0x15d > config_found_sm_loc() at netbsd:config_found_sm_loc+0x2b > pchbattach() at netbsd:pchbattach+0x248 > config_attach_loc() at netbsd:config_attach_loc+0x182 > pci_probe_device() at netbsd:pci_probe_device+0x4a6 > pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x189 > pcirescan() at netbsd:pcirescan+0x47 > pciattach() at netbsd:pciattach+0x196 > config_attach_loc() at netbsd:config_attach_loc+0x182 > mp_pci_scan() at netbsd:mp_pci_scan+0xa4 > mainbus_attach() at netbsd:mainbus_attach+0x35e > config_attach_loc() at netbsd:config_attach_loc+0x182 > cpu_configure() at netbsd:cpu_configure+0x26 > main() at netbsd:main+0x2b0 Yes, I got exactly the same panic and was wondering whether that KASSERT is wrong or not. cfdriver_get_iattr() returns NULL. Removing the KASSERT makes the machine boot for me and things continue to work as expected. Christoph
Re: CVS commit: src/etc/mtree
On Sat, Apr 14, 2012 at 12:14:22AM +, Paul Goyette wrote: > Module Name: src > Committed By: pgoyette > Date: Sat Apr 14 00:14:22 UTC 2012 > > Modified Files: > src/etc/mtree: NetBSD.dist.tests > > Log Message: > Create the directory for the helper program; hopefully fixes the build > break. > > XXX It's odd that k_helper3 needs to have its directory pre-created, when > XXX k_helper, k_helper2, and k_uvm don't need it... Thanks for fixing this. I was (also) kind of lost with the src/tests/modules build mechanisms... - Jukka.
Re: CVS commit: src/sys/arch
On 04/13/12 15:19, Paul Goyette wrote: I think you may also need to update src/sys/modules/amdtemp/amdtemp.ioconf Thanks for pointing this out. Done. Christoph On Fri, 13 Apr 2012, Christoph Egger wrote: Module Name: src Committed By: cegger Date: Fri Apr 13 13:11:17 UTC 2012 Modified Files: src/sys/arch/amd64/conf: GENERIC XEN3_DOM0 src/sys/arch/i386/conf: ALL GENERIC XEN3_DOM0 src/sys/arch/x86/pci: amdtemp.c files.pci Added Files: src/sys/arch/x86/pci: amdnb_misc.c Log Message: Replace amdtempbus with amdnb_miscbus. This allows us to have independent drivers on the same device (northbridge f3) each coming with a certain functionality/feature. This way we do not need to mess with amdtemp(4) to utilize other features.. To generate a diff of this commit: cvs rdiff -u -r1.352 -r1.353 src/sys/arch/amd64/conf/GENERIC cvs rdiff -u -r1.81 -r1.82 src/sys/arch/amd64/conf/XEN3_DOM0 cvs rdiff -u -r1.335 -r1.336 src/sys/arch/i386/conf/ALL cvs rdiff -u -r1.1070 -r1.1071 src/sys/arch/i386/conf/GENERIC cvs rdiff -u -r1.64 -r1.65 src/sys/arch/i386/conf/XEN3_DOM0 cvs rdiff -u -r0 -r1.1 src/sys/arch/x86/pci/amdnb_misc.c cvs rdiff -u -r1.14 -r1.15 src/sys/arch/x86/pci/amdtemp.c cvs rdiff -u -r1.13 -r1.14 src/sys/arch/x86/pci/files.pci Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. !DSPAM:4f8826141989530048591! - | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net | | Kernel Developer | | pgoyette at netbsd.org | -
Re: CVS commit: src/sys/arch
I think you may also need to update src/sys/modules/amdtemp/amdtemp.ioconf On Fri, 13 Apr 2012, Christoph Egger wrote: Module Name:src Committed By: cegger Date: Fri Apr 13 13:11:17 UTC 2012 Modified Files: src/sys/arch/amd64/conf: GENERIC XEN3_DOM0 src/sys/arch/i386/conf: ALL GENERIC XEN3_DOM0 src/sys/arch/x86/pci: amdtemp.c files.pci Added Files: src/sys/arch/x86/pci: amdnb_misc.c Log Message: Replace amdtempbus with amdnb_miscbus. This allows us to have independent drivers on the same device (northbridge f3) each coming with a certain functionality/feature. This way we do not need to mess with amdtemp(4) to utilize other features.. To generate a diff of this commit: cvs rdiff -u -r1.352 -r1.353 src/sys/arch/amd64/conf/GENERIC cvs rdiff -u -r1.81 -r1.82 src/sys/arch/amd64/conf/XEN3_DOM0 cvs rdiff -u -r1.335 -r1.336 src/sys/arch/i386/conf/ALL cvs rdiff -u -r1.1070 -r1.1071 src/sys/arch/i386/conf/GENERIC cvs rdiff -u -r1.64 -r1.65 src/sys/arch/i386/conf/XEN3_DOM0 cvs rdiff -u -r0 -r1.1 src/sys/arch/x86/pci/amdnb_misc.c cvs rdiff -u -r1.14 -r1.15 src/sys/arch/x86/pci/amdtemp.c cvs rdiff -u -r1.13 -r1.14 src/sys/arch/x86/pci/files.pci Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. !DSPAM:4f8826141989530048591! - | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com| | Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net | | Kernel Developer | | pgoyette at netbsd.org | -