Skip to content

aic94xx: Supermicro motherboards support

Sergey Kononenko linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 2 patches 3 repliesIn review

1 of 2 patches is in this archive. The cover letter announces 2.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/2aic94xx: Supermicro motherboards support (remove FLASHEX check)+0 -00 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/2] aic94xx: Supermicro motherboards support

Hello,

The aic94xx driver in current mainline kernel don't work with controllers integrated in some of Supermicro motherboards (i have tested only on X6DHR-3G2) due to two reasons:
- driver do not contain corresponding PCI id (9005:041F)
- driver can not find flash on controller.

Patches which i send now ordered to resolve this problems.

First one is a simple and just add pci id, but second one is a bit controversial.

The following code from function asd_flash_getid (aic94xx_sds.c)

	reg = asd_read_reg_dword(asd_ha, EXSICNFGR);

        if (!(reg & FLASHEX)) {
                ASD_DPRINTK("flash doesn't exist\n");
                return -ENOENT;
        }

failed with error on controllers in supermicro motherboards. Looks like flag FLASHEX did not set on such devices, however flash chip present and without above if statement in code drivers works normally on supermicro controllers.

As i found this code was commented out in original driver by Luben Tuikov with following comment:

/* Early (current?) SuperMicro mainboards, X6DHR-3G2 and X6DH3-G2
have a bug whereby RS104 is missing (not installed) and RS103 is installed, causing FLASHEX to be 0. */
/* if (!(reg & FLASHEX)) { */
/* ASD_DPRINTK("flash doesn't exist\n"); */
/* return -ENOENT; */
/* } */

May be it is possible to write separate code for checking availability of flash chip especially for supermicro motherboards, but i don't know hot it possible and don't know what is RS104, RS103 and difference between it.

But more likely that check of FLASHEX can be removed safely from code because below there is another more generic check for flash chip via pci config probe.

This solution works perfect in my case, also it was in original code, however i think this second patch would be tested on some other varieties of aic94xx hardware.

--
Sergey Kononenko