Re: sis190

From: Francois Romieu (romieu_at_fr.zoreil.com)
Date: 07/02/05

  • Next message: Adrian Bunk: "[2.6 patch] drivers/scsi/aic7xxx/: possible cleanups"
    Date:	Sat, 2 Jul 2005 13:33:11 +0200
    To: Pascal CHAPPERON <pascal.chapperon@wanadoo.fr>
    
    

    Pascal CHAPPERON <pascal.chapperon@wanadoo.fr> :
    [...]
    > A few lines diff, and now the driver is very stable with or
    > without preempted kernel...
    >
    > I'll be very happy if you can tell me where is the trick.

    Probably:
    - when it filled the last Tx descriptor sis190_start_xmit()
      issued a netif_stop_queue and returned NETDEV_TX_BUSY;
    - the asic completed DMAing the packet and acked it;
    - sis190_tx_interrupt later released the descriptor and freed the skb;

    -> since NETDEV_TX_BUSY assumes that the driver does not play with the skb,
       one gets interesting results.

    [...]
    > I tried it carefully : console, X11 (without nvidia), X11 (with nvidia),
    > IRQ sharing between sis190/nvidia, full load : it worked perfectly.

    Megateuf Wayne !

    [...]
    > BTW, can you remove the following printks from the patch ?
    > The printks in interrupt functions make dmesg unusuable,
    > and the stuff in sis190_get_drvinfo triggers a kernel oops
    > when the module is loaded (null pointer assignment).

    I'll polish the thing and sprinkle a few netif_msg_xxx() later today.

    --
    Ueimor
    -
    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: Adrian Bunk: "[2.6 patch] drivers/scsi/aic7xxx/: possible cleanups"

    Relevant Pages

    • Re: FW: Linux kernel file offset pointer races
      ... Do the locking in the concurrent userspace pos users, ... anybody who mixes readand lseekon the same descriptor without ... It should not break the kernel, obviously, but kernel has no ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED
      ... > Andi> Ok, it didn't oops. ... I don't know what's wrong with your kernel, ... If it happened to me here I would add printks to the early kernel ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [REPOST] "apm: suspend: Unable to enter requested state" after 2.5.31 (incl. 2.6.0test
      ... I left the laptop at work, so I don't have dmesg output nearby. ... > The base and limit parts of the descriptor get initialised at run time ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: select implementation not POSIX compliant?
      ... >surprise factor, since the code would work were it not for the other ... Could you post the test case for this behavior: I assume your test app ... undefined in Linux if you close a descriptor while another thread polls ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: sis190
      ... > look at the media management after... ... > BTW, can you remove the following printks from the patch? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)