Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2018 12:10:25 -0800
From:      Matthew Macy <mat.macy@gmail.com>
To:        Tijl Coosemans <tijl@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r339618 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <CAPrugNqfGGbXBx8TsU4KYR=nk5RzQRNAvjTURfvEmRda8j0ghA@mail.gmail.com>
In-Reply-To: <20181118114538.546a4fab@kalimero.tijl.coosemans.org>
References:  <201810222055.w9MKtZPt013627@repo.freebsd.org> <CAPrugNoMVDyg-CnVh5NUgrxdaHcbo3CibC3RsPQ7FVtdJ=FJdQ@mail.gmail.com> <CAPrugNq3HXvPccFzRxFK79o2fK3KzCzpn7BzEim9MyXxGnJ%2Bpw@mail.gmail.com> <20181118114538.546a4fab@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Note that these functions are normally used on uncacheable memory which
> is strongly ordered on x86.  There should be no reordering at all.  On
> PowerPC barrier instructions are needed to prevent reordering.

Correct. The current lkpi implementation also assumes that device
endian == host endian. The Linux generic accessors will do use endian
macros to byte swap where necessary.

The following change fixes radeon attach issues:
https://github.com/POWER9BSD/freebsd/commit/be6c98f5c2e2ed9a4935ac5b67c468b75f3b4457



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPrugNqfGGbXBx8TsU4KYR=nk5RzQRNAvjTURfvEmRda8j0ghA>