Re: Apparent regression in r250359

看板FB_stable作者時間12年前 (2013/05/11 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/9 (看更多)
This patch works on one of my 9.1 systems in addition to my CURRENT system. On Thu, 9 May 2013, Jim Ohlstein wrote: > On 05/09/13 12:04, Konstantin Belousov wrote: >> On Thu, May 09, 2013 at 11:42:28AM -0400, Jim Ohlstein wrote: >>> On 05/09/13 10:30, Konstantin Belousov wrote: >>>> On Thu, May 09, 2013 at 10:13:15AM -0400, Jim Ohlstein wrote: >>>>> # sysctl hw.model >>>>> hw.model: AMD FX(tm)-8350 Eight-Core Processor >>>> Ahh, so it seems that this is a CPU with the LWP. >>>> Please try the patch at the end of message. >>> >>> Same error >>> >>>> >>>> As another workaround, which does not disable AVX support, you >>>> could try loader tunable hw.xsave_mask=0x7. >>> >>> This works >> >> Hm, I see another bug in the next line as well. Could you try this >> updated patch ? > > This does work. > >> >> diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c >> index de79baa..9bc8a2f 100644 >> --- a/sys/amd64/amd64/fpu.c >> +++ b/sys/amd64/amd64/fpu.c >> @@ -687,8 +687,8 @@ fpugetregs(struct thread *td) >> offsetof(struct xstate_hdr, xstate_bv)); >> max_ext_n = flsl(xsave_mask); >> for (i = 0; i < max_ext_n; i++) { >> - bit = 1 << i; >> - if ((*xstate_bv & bit) != 0) >> + bit = 1ULL << i; >> + if ((xsave_mask & bit) == 0 || (*xstate_bv & bit) != >> 0) >> continue; >> bcopy((char *)fpu_initialstate + >> xsave_area_desc[i].offset, >> > > > -- > Jim Ohlstein > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1HZKiodh (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1HZKiodh (FB_stable)