Re: crash with cpucontrol/microcode update : Today's -CURRENT

看板FB_current作者時間12年前 (2013/08/11 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
On 2013-08-10 15:02, Konstantin Belousov wrote: > Try this. > > diff --git a/sys/dev/cpuctl/cpuctl.c b/sys/dev/cpuctl/cpuctl.c > index 742ef0db..4e5abb2 100644 > --- a/sys/dev/cpuctl/cpuctl.c > +++ b/sys/dev/cpuctl/cpuctl.c > @@ -346,8 +346,7 @@ update_intel(int cpu, cpuctl_update_args_t *args, > struct thread *td) > else > ret = EEXIST; > fail: > - if (ptr != NULL) > - contigfree(ptr, args->size, M_CPUCTL); > + free(ptr, M_CPUCTL); > return (ret); > } > > @@ -476,8 +475,7 @@ update_via(int cpu, cpuctl_update_args_t *args, > struct thread *td) > else > ret = 0; > fail: > - if (ptr != NULL) > - contigfree(ptr, args->size, M_CPUCTL); > + free(ptr, M_CPUCTL); > return (ret); > } Fixed it. # service microcode_update onestart Updating cpucodes... /usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl0 from rev 0x60c to rev 0x60f... done. /usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl1 from rev 0x60c to rev 0x60f... done. /usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl2 from rev 0x60c to rev 0x60f... done. /usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl3 from rev 0x60c to rev 0x60f... done. /usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl4 from rev 0x60c to rev 0x60f... done. /usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl5 from rev 0x60c to rev 0x60f... done. /usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl6 from rev 0x60c to rev 0x60f... done. /usr/local/share/cpucontrol/m401067660F.fw: updating cpu /dev/cpuctl7 from rev 0x60c to rev 0x60f... done. Done. # ^D$ -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: ler@lerctr.org US Mail: 108 Turvey Cove, Hutto, TX 78634-5688 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1I1gD2WQ (FB_current)
文章代碼(AID): #1I1gD2WQ (FB_current)