Re: How do I use NCQ of Intel X25-E(SSD) on ahci(4)?

From: Artem Belevich <fbsdlist_at_src.cx>
Date: Wed, 18 Nov 2009 12:06:12 -0800
> --- sys/dev/ahci/ahci.c.orig    2009-11-17 22:25:07.474418000 +0900
> +++ sys/dev/ahci/ahci.c 2009-11-19 02:00:22.193688908 +0900
> _at__at_ -779,7 +779,7 _at__at_
>        ch->caps = ctlr->caps;
>        ch->caps2 = ctlr->caps2;
>        ch->quirks = ctlr->quirks;
> -       ch->numslots = ((ch->caps & AHCI_CAP_NCS) >> AHCI_CAP_NCS_SHIFT) + 1,
> +       ch->numslots = min(31, ((ch->caps & AHCI_CAP_NCS) >> AHCI_CAP_NCS_SHIFT) + 1),
>        mtx_init(&ch->mtx, "AHCI channel lock", NULL, MTX_DEF);
>        resource_int_value(device_get_name(dev),
>            device_get_unit(dev), "pm_level", &ch->pm_level);

The comma at the end of the "ch->numslots = ..." line looks
suspicious. Shouldn't it be ';' ?

--Artem
Received on Wed Nov 18 2009 - 19:06:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC