Skip to content

aic94xx: sas code clean-up phase 2

Alexis Bruemmer linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7aic94xx: sas header file mergeinclude/scsi/libsas.h include/scsi/sas.h+0 -00 replies
1/7aic94xx: sas header file mergedrivers/scsi/aic94xx/aic94xx.h drivers/scsi/aic94xx/aic94xx_hwi.c drivers/scsi/aic94xx/aic94xx_hwi.h +21 more+1280 -15300 replies
2/7aic94xx: use available list_for_each_entry_safe_reverse()drivers/scsi/sas/sas_discover.c+1 -10 replies
3/7aic94xx: sas remove depot'sdrivers/scsi/aic94xx/Kconfig drivers/scsi/aic94xx/aic94xx_dump.c drivers/scsi/aic94xx/aic94xx_dump.h +24 more+0 -290 replies
4/7aic94xx: remove sas_common.cdrivers/scsi/sas/Makefile drivers/scsi/sas/sas_common.c drivers/scsi/sas/sas_init.c+25 -1160 replies
5/7aic94xx: remove queue commentdrivers/scsi/sas/sas_event.c+0 -400 replies
6/7aic94xx: use bitopsdrivers/scsi/sas/sas_internal.h+5 -41 reply
7/7aic94xx: remove various inline functionsdrivers/scsi/sas/sas_discover.c drivers/scsi/sas/sas_expander.c drivers/scsi/sas/sas_scsi_host.c+37 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] aic94xx: sas code clean-up phase 2

Here is round 2 of the aic94xx supporting sas code clean-up.

Again these patches are being created to address the comments in the following email:
http://marc.theaimsgroup.com/?l=linux-scsi&m=114624643916659&w=2

The address the following issues:

1) Merge sas header files into libsas.h and sas.h and move them into the include/scsi dir
2) Use available list_for_each_entry_safe_reverse() function
3) Remove the //depot SCM comments
4) Remove the sas_common.c file
5) Remove the long queue implementation comment-- no longer valid
6) Use bitops for testing, setting and clearing bits
7) Remove various inline functions

There are a few issues that remain, but before I address them I would like some clarification:

-all the code should be renamed to libsas to make sure this is helpers
for a host-based sas implementation, including the config option

Does this mean that you would like to see all the files under
the drivers/scsi/sas/ dir compressed into one drivers/scsi/libsas.c file or that the files should just be moved to driver/scsi and start with libsas_*.c

-sas_frames*.h need to be changed to avoid on the wite bitfields which
are completely non-portable. That'll cause quite a bit of churn all over the codebase unfortuantely. some of those headers should be merged with the current scsi_transport_sas.h, e.g. the latter should lose various constants that are in sas.h

why? There are bit fields in many places under drivers/scsi. There
shouldn't be any issues between 32 and 64 bit with the u8 definition and we haven't seen any issues across the two architectures we have tested here (ppc64 and x86_64). I just don't see the portability issue in this case, so please elaborate :).

- drivers/scsi/sas/README needs to be updated to match reality and move to Documentation/

What exactly do we want to talk about in this readme file. Describe
scsi_transport_sas.c? Explain the driver/scsi/sas/ dir?

- expander_conf.c should go away from the kernel tree.

Is there plan to implement this somewhere else? If not should it stay
for the moment.

Once these areas have been well discussed and we are all on the same page I will start on phase 3. The 7 patches have been attached for feedback. Thanks as always for your comments.

Regards,

Alexis