AIX 4.3 SCSI ioctl command with IBM 6228

Ask a Question related to AIX, Design and Development.

  1. #1

    Default AIX 4.3 SCSI ioctl command with IBM 6228

    Hello,

    I have a small utility that sends inquiry command to a fiber channel card
    using an ioctl call. I open succeeding rhdisk files with openx in
    diagnostic mode. I then continue to call ioctl(fd, DKIOCMD, mystruct),
    where mystruct is of type struct sc_iocmd, and DKIOCMD implies a
    diagnostic inquiry.

    The problem is that I am getting an invalid return value, EINVAL, which
    tells me that either one of my parameters is wrong and/or the combination
    of the arguments is wrong. This could mean that my structure is not filled in
    correctly which I have already considered but does not seem to be the
    case.

    The thing is that this utility has worked in the past with other cards.
    With the IBM 6228 it ceases to work. I understand that the IBM 6228 is 64
    bit and the sc_iocmd struct is 32 bit but I wouldn't think it should cause
    a problem. I also tried using ioctlx() instead and no progress has been
    made. The 64-bit sc_cmd struct is resevred for the kernel domain only.

    Any ideas or comments?

    Thanks,
    Joe K.
    Joseph Krauze Guest

  2. Similar Questions and Discussions

    1. AIX 4.3.3 with two 6228 HBA - Too much rmt created
      Hello, On an AIX 4.3.3 server with two 6228 HBAs : fscsi0 (tapes) - PtP connection to an ADIC snc5100/Scalar1000/LTO1x6 fscsi1 (disk) -...
    2. Lilo: strange warnings when scsi boot + ide-scsi emulation
      I am using Lilo to boot from a SCSI drive. My setup is as follows: sda: scsi main drive, Boot from MBR (/dev/sda), swap in /dev/sda1 single...
    3. Unappropriate ioctl for device
      Hello, I upgraded Perl from 5.6 to 5.8. The software I develop used to work fine with Perl 5.6 and now, sometimes, I get the error "Unappropriate...
    4. unbalanced 6228 fiber cards
      I have an IBM 7040-P690 with 4 LPAR's. Each LPAR has 2 IBM 6228 2Gb fiber cards installed through a 2Gb SAN switch to an EMC Symmetrix, using EMC...
    5. Any way to backup to a Sony SDK-5200 Tape drive(SCSI) using a Xircom USB-SCSI converter in OSX?
      Thanks. I'd like to not have to buy more hardware. I would backup with Retrospect. Jack Stroh
  3. #2

    Default Re: AIX 4.3 SCSI ioctl command with IBM 6228

    Joseph Krauze <jkrauze@ccs.neu.edu> wrote:
    JK> Hello,

    JK> I have a small utility that sends inquiry command to a fiber channel card
    JK> using an ioctl call. I open succeeding rhdisk files with openx in
    JK> diagnostic mode. I then continue to call ioctl(fd, DKIOCMD, mystruct),
    JK> where mystruct is of type struct sc_iocmd, and DKIOCMD implies a
    JK> diagnostic inquiry.

    JK> The problem is that I am getting an invalid return value, EINVAL, which
    JK> tells me that either one of my parameters is wrong and/or the combination
    JK> of the arguments is wrong. This could mean that my structure is not filled in
    JK> correctly which I have already considered but does not seem to be the
    JK> case.

    JK> The thing is that this utility has worked in the past with other cards.
    JK> With the IBM 6228 it ceases to work. I understand that the IBM 6228 is 64
    JK> bit and the sc_iocmd struct is 32 bit but I wouldn't think it should cause
    JK> a problem. I also tried using ioctlx() instead and no progress has been
    JK> made. The 64-bit sc_cmd struct is resevred for the kernel domain only.

    JK> Any ideas or comments?

    I don't know exactly what you mean about struct so_iocmd being
    32-bit, but it does make me wonder whether the driver expects the
    struct so_iocmd argument to be aligned on a 64-bit word.

    Regards,

    Nicholas

    --
    "Why shouldn't I top-post?" [url]http://www.aglami.com/tpfaq.html[/url]
    "Meanings are another story." [url]http://www.ifas.org/wa/glossolalia.html[/url]
    Nicholas Dronen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139