aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoecmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/aoe/aoecmd.c')
-rw-r--r--drivers/block/aoe/aoecmd.c35
1 files changed, 20 insertions, 15 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 2d0bcdd9669..8a13b1af8ba 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -159,7 +159,7 @@ aoecmd_ata_rw(struct aoedev *d, struct frame *f)
159 buf->nframesout += 1; 159 buf->nframesout += 1;
160 buf->bufaddr += bcnt; 160 buf->bufaddr += bcnt;
161 buf->bv_resid -= bcnt; 161 buf->bv_resid -= bcnt;
162/* dprintk("bv_resid=%ld\n", buf->bv_resid); */ 162/* printk(KERN_DEBUG "aoe: bv_resid=%ld\n", buf->bv_resid); */
163 buf->resid -= bcnt; 163 buf->resid -= bcnt;
164 buf->sector += bcnt >> 9; 164 buf->sector += bcnt >> 9;
165 if (buf->resid == 0) { 165 if (buf->resid == 0) {
@@ -203,7 +203,7 @@ aoecmd_cfg_pkts(ushort aoemajor, unsigned char aoeminor, struct sk_buff **tail)
203 203
204 skb = new_skb(sizeof *h + sizeof *ch); 204 skb = new_skb(sizeof *h + sizeof *ch);
205 if (skb == NULL) { 205 if (skb == NULL) {
206 iprintk("skb alloc failure\n"); 206 printk(KERN_INFO "aoe: skb alloc failure\n");
207 continue; 207 continue;
208 } 208 }
209 skb->dev = ifp; 209 skb->dev = ifp;
@@ -276,7 +276,7 @@ loop:
276 return; 276 return;
277 buf = container_of(d->bufq.next, struct buf, bufs); 277 buf = container_of(d->bufq.next, struct buf, bufs);
278 list_del(d->bufq.next); 278 list_del(d->bufq.next);
279/*dprintk("bi_size=%ld\n", buf->bio->bi_size); */ 279/*printk(KERN_DEBUG "aoe: bi_size=%ld\n", buf->bio->bi_size); */
280 d->inprocess = buf; 280 d->inprocess = buf;
281 } 281 }
282 aoecmd_ata_rw(d, f); 282 aoecmd_ata_rw(d, f);
@@ -319,7 +319,7 @@ rexmit(struct aoedev *d, struct frame *f)
319 } 319 }
320 if (++d->lostjumbo > (d->nframes << 1)) 320 if (++d->lostjumbo > (d->nframes << 1))
321 if (d->maxbcnt != DEFAULTBCNT) { 321 if (d->maxbcnt != DEFAULTBCNT) {
322 iprintk("e%ld.%ld: too many lost jumbo on %s - using 1KB frames.\n", 322 printk(KERN_INFO "aoe: e%ld.%ld: too many lost jumbo on %s - using 1KB frames.\n",
323 d->aoemajor, d->aoeminor, d->ifp->name); 323 d->aoemajor, d->aoeminor, d->ifp->name);
324 d->maxbcnt = DEFAULTBCNT; 324 d->maxbcnt = DEFAULTBCNT;
325 d->flags |= DEVFL_MAXBCNT; 325 d->flags |= DEVFL_MAXBCNT;
@@ -472,7 +472,7 @@ ataid_complete(struct aoedev *d, unsigned char *id)
472 } 472 }
473 473
474 if (d->ssize != ssize) 474 if (d->ssize != ssize)
475 iprintk("%012llx e%lu.%lu v%04x has %llu sectors\n", 475 printk(KERN_INFO "aoe: %012llx e%lu.%lu v%04x has %llu sectors\n",
476 (unsigned long long)mac_addr(d->addr), 476 (unsigned long long)mac_addr(d->addr),
477 d->aoemajor, d->aoeminor, 477 d->aoemajor, d->aoeminor,
478 d->fw_ver, (long long)ssize); 478 d->fw_ver, (long long)ssize);
@@ -483,7 +483,7 @@ ataid_complete(struct aoedev *d, unsigned char *id)
483 d->flags |= DEVFL_NEWSIZE; 483 d->flags |= DEVFL_NEWSIZE;
484 } else { 484 } else {
485 if (d->flags & DEVFL_GDALLOC) { 485 if (d->flags & DEVFL_GDALLOC) {
486 eprintk("can't schedule work for e%lu.%lu, %s\n", 486 printk(KERN_ERR "aoe: can't schedule work for e%lu.%lu, %s\n",
487 d->aoemajor, d->aoeminor, 487 d->aoemajor, d->aoeminor,
488 "it's already on! This shouldn't happen.\n"); 488 "it's already on! This shouldn't happen.\n");
489 return; 489 return;
@@ -569,7 +569,8 @@ aoecmd_ata_rsp(struct sk_buff *skb)
569 if (ahout->cmdstat == WIN_IDENTIFY) 569 if (ahout->cmdstat == WIN_IDENTIFY)
570 d->flags &= ~DEVFL_PAUSE; 570 d->flags &= ~DEVFL_PAUSE;
571 if (ahin->cmdstat & 0xa9) { /* these bits cleared on success */ 571 if (ahin->cmdstat & 0xa9) { /* these bits cleared on success */
572 eprintk("ata error cmd=%2.2Xh stat=%2.2Xh from e%ld.%ld\n", 572 printk(KERN_ERR
573 "aoe: ata error cmd=%2.2Xh stat=%2.2Xh from e%ld.%ld\n",
573 ahout->cmdstat, ahin->cmdstat, 574 ahout->cmdstat, ahin->cmdstat,
574 d->aoemajor, d->aoeminor); 575 d->aoemajor, d->aoeminor);
575 if (buf) 576 if (buf)
@@ -580,7 +581,8 @@ aoecmd_ata_rsp(struct sk_buff *skb)
580 case WIN_READ: 581 case WIN_READ:
581 case WIN_READ_EXT: 582 case WIN_READ_EXT:
582 if (skb->len - sizeof *hin - sizeof *ahin < n) { 583 if (skb->len - sizeof *hin - sizeof *ahin < n) {
583 eprintk("runt data size in read. skb->len=%d\n", 584 printk(KERN_ERR
585 "aoe: runt data size in read. skb->len=%d\n",
584 skb->len); 586 skb->len);
585 /* fail frame f? just returning will rexmit. */ 587 /* fail frame f? just returning will rexmit. */
586 spin_unlock_irqrestore(&d->lock, flags); 588 spin_unlock_irqrestore(&d->lock, flags);
@@ -618,7 +620,8 @@ aoecmd_ata_rsp(struct sk_buff *skb)
618 break; 620 break;
619 case WIN_IDENTIFY: 621 case WIN_IDENTIFY:
620 if (skb->len - sizeof *hin - sizeof *ahin < 512) { 622 if (skb->len - sizeof *hin - sizeof *ahin < 512) {
621 iprintk("runt data size in ataid. skb->len=%d\n", 623 printk(KERN_INFO
624 "aoe: runt data size in ataid. skb->len=%d\n",
622 skb->len); 625 skb->len);
623 spin_unlock_irqrestore(&d->lock, flags); 626 spin_unlock_irqrestore(&d->lock, flags);
624 return; 627 return;
@@ -626,7 +629,8 @@ aoecmd_ata_rsp(struct sk_buff *skb)
626 ataid_complete(d, (char *) (ahin+1)); 629 ataid_complete(d, (char *) (ahin+1));
627 break; 630 break;
628 default: 631 default:
629 iprintk("unrecognized ata command %2.2Xh for %d.%d\n", 632 printk(KERN_INFO
633 "aoe: unrecognized ata command %2.2Xh for %d.%d\n",
630 ahout->cmdstat, 634 ahout->cmdstat,
631 be16_to_cpu(hin->major), 635 be16_to_cpu(hin->major),
632 hin->minor); 636 hin->minor);
@@ -686,7 +690,7 @@ aoecmd_ata_id(struct aoedev *d)
686 690
687 f = freeframe(d); 691 f = freeframe(d);
688 if (f == NULL) { 692 if (f == NULL) {
689 eprintk("can't get a frame. This shouldn't happen.\n"); 693 printk(KERN_ERR "aoe: can't get a frame. This shouldn't happen.\n");
690 return NULL; 694 return NULL;
691 } 695 }
692 696
@@ -732,14 +736,14 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
732 */ 736 */
733 aoemajor = be16_to_cpu(h->major); 737 aoemajor = be16_to_cpu(h->major);
734 if (aoemajor == 0xfff) { 738 if (aoemajor == 0xfff) {
735 eprintk("Warning: shelf address is all ones. " 739 printk(KERN_ERR "aoe: Warning: shelf address is all ones. "
736 "Check shelf dip switches.\n"); 740 "Check shelf dip switches.\n");
737 return; 741 return;
738 } 742 }
739 743
740 sysminor = SYSMINOR(aoemajor, h->minor); 744 sysminor = SYSMINOR(aoemajor, h->minor);
741 if (sysminor * AOE_PARTITIONS + AOE_PARTITIONS > MINORMASK) { 745 if (sysminor * AOE_PARTITIONS + AOE_PARTITIONS > MINORMASK) {
742 iprintk("e%ld.%d: minor number too large\n", 746 printk(KERN_INFO "aoe: e%ld.%d: minor number too large\n",
743 aoemajor, (int) h->minor); 747 aoemajor, (int) h->minor);
744 return; 748 return;
745 } 749 }
@@ -750,7 +754,7 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
750 754
751 d = aoedev_by_sysminor_m(sysminor, n); 755 d = aoedev_by_sysminor_m(sysminor, n);
752 if (d == NULL) { 756 if (d == NULL) {
753 iprintk("device sysminor_m failure\n"); 757 printk(KERN_INFO "aoe: device sysminor_m failure\n");
754 return; 758 return;
755 } 759 }
756 760
@@ -767,7 +771,8 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
767 n = ch->scnt; 771 n = ch->scnt;
768 n = n ? n * 512 : DEFAULTBCNT; 772 n = n ? n * 512 : DEFAULTBCNT;
769 if (n != d->maxbcnt) { 773 if (n != d->maxbcnt) {
770 iprintk("e%ld.%ld: setting %d byte data frames on %s\n", 774 printk(KERN_INFO
775 "aoe: e%ld.%ld: setting %d byte data frames on %s\n",
771 d->aoemajor, d->aoeminor, n, d->ifp->name); 776 d->aoemajor, d->aoeminor, n, d->ifp->name);
772 d->maxbcnt = n; 777 d->maxbcnt = n;
773 } 778 }