Re: Si3112 S-ATA bug preventing use of udma5.

From: Denis Vlasenko (vda_at_port.imtp.ilyichevsk.odessa.ua)
Date: 04/24/04

  • Next message: Denis Vlasenko: "Re: PROBLEM: Oops when using both channels of the PDC20262"
    To: Benjamin Herrenschmidt <benh@kernel.crashing.org>, Roland Dreier <roland@topspin.com>
    Date:	Sat, 24 Apr 2004 22:35:40 +0300
    
    

    On Saturday 24 April 2004 07:31, Benjamin Herrenschmidt wrote:
    > On Sat, 2004-04-24 at 12:30, Roland Dreier wrote:
    > > Finally, siimage.c does
    > >
    > > hwif->OUTW(speedt, addr);
    > >
    > > and speedt is a u32 -- however, as you say, the compiler should just
    > > cast speedt down to a u16. What am I missing?
    >
    > This is just a normal function call, there should be nothing special,
    > so either you are missing something else or you are suffering from
    > incorrectly compiled code... I'm no x86 expert so I can't help
    > analyzing the codegen here though.

    place a pair of bogus calls:

    void marker(void);
    ....
            marker();
            hwif->OUTW(speedt, addr);
            marker();
    ...

    and objdump -d resulting .o file.
    It will be easy to find corresponding asm fragment.

    --
    vda
    -
    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: Denis Vlasenko: "Re: PROBLEM: Oops when using both channels of the PDC20262"

    Relevant Pages

    • Re: [PATCH] Fix ide unregister vs. driver model
      ... On Sunday 24 August 2003 16:05, Benjamin Herrenschmidt wrote: ... inner ifshould be indented ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC][PATCH] new timeofday arch specific hooks (v. A3)
      ... On Sat, 2005-03-12 at 16:52 +1100, Benjamin Herrenschmidt wrote: ... you can test the new time of day subsystem. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] Small PCI core patch
      ... On 11/21/05, Benjamin Herrenschmidt wrote: ... They really doesn't give a shit ... catch is the part about advancing the Linux desktop, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Parallel ATA with libata status with the patches Im working on
      ... On Gwe, 2005-11-04 at 17:43 +1100, Benjamin Herrenschmidt wrote: ... It always looked to me like a gross ... IRQ mask is on my todo list and looks quite easy. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: List of SCO files
      ... On Wednesday 12 November 2003 07:49 pm, Benjamin Herrenschmidt wrote: ... festering mess of includes this must all be resolved somehow on other ... I'm betting on the "This is a stupid hack" phrase. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)