[PATCH] pci: print out DMA mask info - Kernel

This is a discussion on [PATCH] pci: print out DMA mask info - Kernel ; Grant Grundler writes: > On Wed, Oct 22, 2008 at 09:28:33PM -0600, Matthew Wilcox wrote: >> On Wed, Oct 22, 2008 at 06:45:10PM -0700, Yinghai Lu wrote: >> > Grant prefer to add it /sys instead of showing in bootlog ...

+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3
Results 41 to 42 of 42

Thread: [PATCH] pci: print out DMA mask info

  1. Re: [PATCH] pci: show dma_mask bits in /sys

    Grant Grundler writes:

    > On Wed, Oct 22, 2008 at 09:28:33PM -0600, Matthew Wilcox wrote:
    >> On Wed, Oct 22, 2008 at 06:45:10PM -0700, Yinghai Lu wrote:
    >> > Grant prefer to add it /sys instead of showing in bootlog
    >> >
    >> > so could catch if the driver set the correct dma_mask.

    >>
    >> I still don't think this is useful information to be exposing.

    >
    > It's useful for anyone involved with device drivers - we agree that's
    > a very limited subset of users. I certainly get fed up with trying
    > to figure out which dma_mask each driver is using since in some


    One simple way that doesn't need any kernel changes is to use
    crash on the running kernel. I personally just stuck in printks
    when I needed that, but it doesn't strike me as something that
    is generally useful in standard kernels (agreeing with Willy)

    -Andi
    --
    ak@linux.intel.com
    --
    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/

  2. Re: [PATCH] pci: show dma_mask bits in /sys

    On Fri, Oct 24, 2008 at 12:50:12PM +0200, Andi Kleen wrote:
    > Grant Grundler writes:
    >
    > > On Wed, Oct 22, 2008 at 09:28:33PM -0600, Matthew Wilcox wrote:
    > >> On Wed, Oct 22, 2008 at 06:45:10PM -0700, Yinghai Lu wrote:
    > >> > Grant prefer to add it /sys instead of showing in bootlog
    > >> >
    > >> > so could catch if the driver set the correct dma_mask.
    > >>
    > >> I still don't think this is useful information to be exposing.

    > >
    > > It's useful for anyone involved with device drivers - we agree that's
    > > a very limited subset of users. I certainly get fed up with trying
    > > to figure out which dma_mask each driver is using since in some

    >
    > One simple way that doesn't need any kernel changes is to use
    > crash on the running kernel.


    I would agree if someone can show me how to script crash to dump
    all the struct pci_dev DMA masks and associate that output with
    a driver and device instance.

    > I personally just stuck in printks
    > when I needed that, but it doesn't strike me as something that
    > is generally useful in standard kernels (agreeing with Willy)


    Ok.

    thanks,
    grant
    --
    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/

+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3