Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Mar 2020 20:04:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 237463] aacraid(4) doesn't work on powerpc64
Message-ID:  <bug-237463-227-KXsx3j98E9@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-237463-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-237463-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237463

--- Comment #15 from commit-hook@freebsd.org ---
A commit references this bug:

Author: luporl
Date: Thu Mar  5 20:04:42 UTC 2020
New revision: 358684
URL: https://svnweb.freebsd.org/changeset/base/358684

Log:
  [aacraid] Port driver to big-endian

  Port aacraid driver to big-endian (BE) hosts.

  The immediate goal of this change is to make it possible to use the
  aacraid driver on PowerPC64 machines that have Adaptec Series 8 SAS
  controllers.

  Adapters supported by this driver expect FIB contents in little-endian
  (LE) byte order. All FIBs have a fixed header part as well as a data
  part that depends on the command being issued to the controller.

  In this way, on BE hosts, the FIB header and all FIB data structures
  used in aacraid.c and aacraid_cam.c need to be converted to LE before
  being sent to the adapter and converted to BE when coming from it.

  The functions to convert each struct are on aacraid_endian.c.
  For little-endian (LE) targets, they are macros that expand
  to nothing.
  In some cases, when only a few fields of a large structure are used,
  the fields are converted inline, by the code using them.

  PR:           237463
  Reviewed by:  jhibbits
  Sponsored by: Eldorado Research Institute (eldorado.org.br)
  Differential Revision:        https://reviews.freebsd.org/D23887

Changes:
  head/sys/amd64/conf/NOTES
  head/sys/conf/NOTES
  head/sys/conf/files.powerpc
  head/sys/dev/aacraid/aacraid.c
  head/sys/dev/aacraid/aacraid_cam.c
  head/sys/dev/aacraid/aacraid_endian.c
  head/sys/dev/aacraid/aacraid_endian.h
  head/sys/modules/Makefile
  head/sys/modules/aacraid/Makefile
  head/sys/powerpc/conf/GENERIC64

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237463-227-KXsx3j98E9>