Re: Patch to add support for SGI's IOC4 chipset

From: Jeremy Higdon (jeremy_at_sgi.com)
Date: 10/23/03

  • Next message: Rusty Russell: "Re: [PATCH 2.6.0-test8] MODULE_ALIAS_BLOCK"
    Date:	Wed, 22 Oct 2003 21:34:58 -0700
    To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
    
    

    On Wed, Oct 22, 2003 at 08:31:02PM +0200, Bartlomiej Zolnierkiewicz wrote:
    >
    > I think there is another bug:
    >
    > ...
    > hwif->hw.ack_intr = &sgiioc4_checkirq; /* MultiFunction Chip */
    > ...
    >
    > sgiioc4_clearirq() should be used instead of sgiioc4_checkirq() here,
    > because otherwise IRQ won't be cleared.
    >
    > In order to do this you must modify sgiioc4_clearirq() slightly,
    > just change "return intr_reg;" to "return intr_reg & 0x03;".
    >
    > If you wonder why, please look at ide_ack_intr() use in ide-io.c:ide_intr().

    Thanks. I've taken a look at it and have become puzzled.

    It looks as though ide_ack_intr normally just "returns" 1 and has no
    other effect. But then I see some ide drivers that also have an ack_intr
    routine. On some (most?) architechtures, it would appear that the ack_intr
    routine is not used, since the ide_ack_intr macro will not call it.

    In gayle_ack_intr_a4000(), it looks as though all it does is read a
    register and return something. Is that register read supposed to clear
    interrupt as a side effect.

    So maybe an explicit clear is not needed on most implementations?

    jeremy
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Rusty Russell: "Re: [PATCH 2.6.0-test8] MODULE_ALIAS_BLOCK"

    Relevant Pages

    • RE: [PATCH 2.6.8-rc2] sata_nv.c
      ... I register a host_stop routine, nv_host_stop, that frees the host. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: VxWorks 6.6 - Ethernet interface driver support
      ... “geiMuxConnect” routine function call). ... The effect of the writing to the registers RXCW and STATUS is outlined ... Register content directly before the write done in the ... It should be cleared for port 0 and set for port 1. ...
      (comp.os.vxworks)
    • Re: ptrace problem on ia64 with kernel 2.4.26
      ... > ddd, and other debugging tools, which depend on ptrace system call, don't ... > modification to peek info about register r4. ... > We use the following configuration: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2.6] Altix - ioc3 serial support
      ... ports, and for console ports, it is assumed that the console code has ... >> tty_buffer_request_room is a hint to help the kernel manage buffers>> better. ... register for this. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [RFC 2.6.11-rc2-mm2 7/7] mm: manual page migration -- sys_page_migrate
      ... Are the usual kill-like permissions sufficient? ... In the following routine, tighten up some vertical spacing, ... migrated on success, not zero. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)

    Loading