svn commit: r189295 - head/sys/dev/ata/chipsets

Joe Marcus Clarke marcus at marcuscom.com
Mon Mar 2 23:16:57 PST 2009


On Tue, 2009-03-03 at 06:39 +0000, Alexander Motin wrote:
> Author: mav
> Date: Tue Mar  3 06:39:38 2009
> New Revision: 189295
> URL: http://svn.freebsd.org/changeset/base/189295
> 
> Log:
>   Set PortMultiplier port only for SATA2 channels, where it is applicable.
>   Doing it on old SATA controllers like Promise PDC20375 SATA150 breaks
>   their operation.

Thanks!  My Tinderbox machine thanks you as well.

Joe

>   
>   Tested by:	marcus on PDC20375
> 
> Modified:
>   head/sys/dev/ata/chipsets/ata-promise.c
> 
> Modified: head/sys/dev/ata/chipsets/ata-promise.c
> ==============================================================================
> --- head/sys/dev/ata/chipsets/ata-promise.c	Tue Mar  3 03:33:25 2009	(r189294)
> +++ head/sys/dev/ata/chipsets/ata-promise.c	Tue Mar  3 06:39:38 2009	(r189295)
> @@ -690,8 +690,11 @@ ata_promise_mio_command(struct ata_reque
>  
>      ATA_OUTL(ctlr->r_res2, (ch->unit + 1) << 2, 0x00000001);
>  
> -    /* set portmultiplier port */
> -    ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), atadev->unit & 0x0f);
> +    if ((ctlr->chip->cfg2 == PR_SATA2) ||
> +        ((ctlr->chip->cfg2 == PR_CMBO2) && (ch->unit < 2))) {
> +	/* set portmultiplier port */
> +	ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), atadev->unit & 0x0f);
> +    }
>  
>      /* XXX SOS add ATAPI commands support later */
>      switch (request->u.ata.command) {
> _______________________________________________
> svn-src-all at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-src-all
> To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
> 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20090303/945cc22c/attachment.pgp


More information about the svn-src-head mailing list