diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/scsi/sym53c8xx_2.txt | 21 | ||||
-rw-r--r-- | Documentation/watchdog/src/watchdog-simple.c | 18 |
2 files changed, 19 insertions, 20 deletions
diff --git a/Documentation/scsi/sym53c8xx_2.txt b/Documentation/scsi/sym53c8xx_2.txt index 3d9f06bb3d00..49ea5c58c6bc 100644 --- a/Documentation/scsi/sym53c8xx_2.txt +++ b/Documentation/scsi/sym53c8xx_2.txt | |||
@@ -449,25 +449,14 @@ options as above. | |||
449 | cmd_per_lun=#tags (#tags > 1) tagged command queuing enabled | 449 | cmd_per_lun=#tags (#tags > 1) tagged command queuing enabled |
450 | #tags will be truncated to the max queued commands configuration parameter. | 450 | #tags will be truncated to the max queued commands configuration parameter. |
451 | 451 | ||
452 | 10.2.2 Detailed control of tagged commands | 452 | 10.2.2 Burst max |
453 | This option allows you to specify a command queue depth for each device | ||
454 | that supports tagged command queueing. | ||
455 | Example: | ||
456 | tag_ctrl=10/t2t3q16-t5q24/t1u2q32 | ||
457 | will set devices queue depth as follow: | ||
458 | - controller #0 target #2 and target #3 -> 16 commands, | ||
459 | - controller #0 target #5 -> 24 commands, | ||
460 | - controller #1 target #1 logical unit #2 -> 32 commands, | ||
461 | - all other logical units (all targets, all controllers) -> 10 commands. | ||
462 | |||
463 | 10.2.3 Burst max | ||
464 | burst=0 burst disabled | 453 | burst=0 burst disabled |
465 | burst=255 get burst length from initial IO register settings. | 454 | burst=255 get burst length from initial IO register settings. |
466 | burst=#x burst enabled (1<<#x burst transfers max) | 455 | burst=#x burst enabled (1<<#x burst transfers max) |
467 | #x is an integer value which is log base 2 of the burst transfers max. | 456 | #x is an integer value which is log base 2 of the burst transfers max. |
468 | By default the driver uses the maximum value supported by the chip. | 457 | By default the driver uses the maximum value supported by the chip. |
469 | 458 | ||
470 | 10.2.4 LED support | 459 | 10.2.3 LED support |
471 | led=1 enable LED support | 460 | led=1 enable LED support |
472 | led=0 disable LED support | 461 | led=0 disable LED support |
473 | Do not enable LED support if your scsi board does not use SDMS BIOS. | 462 | Do not enable LED support if your scsi board does not use SDMS BIOS. |
@@ -560,9 +549,9 @@ Previously, the sym2 driver accepted arguments of the form | |||
560 | sym53c8xx=tags:4,sync:10,debug:0x200 | 549 | sym53c8xx=tags:4,sync:10,debug:0x200 |
561 | 550 | ||
562 | As a result of the new module parameters, this is no longer available. | 551 | As a result of the new module parameters, this is no longer available. |
563 | Most of the options have remained the same, but tags has split into | 552 | Most of the options have remained the same, but tags has become |
564 | cmd_per_lun and tag_ctrl for its two different purposes. The sample above | 553 | cmd_per_lun to reflect its different purposes. The sample above would |
565 | would be specified as: | 554 | be specified as: |
566 | modprobe sym53c8xx cmd_per_lun=4 sync=10 debug=0x200 | 555 | modprobe sym53c8xx cmd_per_lun=4 sync=10 debug=0x200 |
567 | 556 | ||
568 | or on the kernel boot line as: | 557 | or on the kernel boot line as: |
diff --git a/Documentation/watchdog/src/watchdog-simple.c b/Documentation/watchdog/src/watchdog-simple.c index 47801bc7e742..4cf72f3fa8e9 100644 --- a/Documentation/watchdog/src/watchdog-simple.c +++ b/Documentation/watchdog/src/watchdog-simple.c | |||
@@ -3,15 +3,25 @@ | |||
3 | #include <unistd.h> | 3 | #include <unistd.h> |
4 | #include <fcntl.h> | 4 | #include <fcntl.h> |
5 | 5 | ||
6 | int main(int argc, const char *argv[]) { | 6 | int main(void) |
7 | { | ||
7 | int fd = open("/dev/watchdog", O_WRONLY); | 8 | int fd = open("/dev/watchdog", O_WRONLY); |
9 | int ret = 0; | ||
8 | if (fd == -1) { | 10 | if (fd == -1) { |
9 | perror("watchdog"); | 11 | perror("watchdog"); |
10 | exit(1); | 12 | exit(EXIT_FAILURE); |
11 | } | 13 | } |
12 | while (1) { | 14 | while (1) { |
13 | write(fd, "\0", 1); | 15 | ret = write(fd, "\0", 1); |
14 | fsync(fd); | 16 | if (ret != 1) { |
17 | ret = -1; | ||
18 | break; | ||
19 | } | ||
20 | ret = fsync(fd); | ||
21 | if (ret) | ||
22 | break; | ||
15 | sleep(10); | 23 | sleep(10); |
16 | } | 24 | } |
25 | close(fd); | ||
26 | return ret; | ||
17 | } | 27 | } |