lkml.org 
[lkml]   [2012]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 02/11] PCI: Try to allocate mem64 above 4G at first
    From
    From: Yinghai Lu <yinghai@kernel.org>
    Date: Tue, 29 May 2012 13:46:03 -0700

    > On Tue, May 29, 2012 at 12:03 PM, H. Peter Anvin <hpa@zytor.com> wrote:
    >> On 05/29/2012 11:17 AM, Yinghai Lu wrote:
    >>> so during allocating, could have allocated above 64k address to non
    >>> 32bit bridge.
    >>>
    >>> but  x86 is ok, because ioport.end always set to 0xffff.
    >>> other arches with IO_SPACE_LIMIT with 0xffffffff or
    >>> 0xffffffffffffffffUL may have problem.
    >>
    >> The latter is nonsense, the PCI-side address space is only 32 bits wide.
    >>
    > maybe they have unified io include ioport and mem io?

    The resource values stored are the actual physical I/O addresses on
    some platforms. Sparc, for example, falls into this category.

    Therefore ~0UL is the only feasible limit for them.

    We have to distinguish explicitly when we are operating upon actual
    PCI bus view addresses vs. the values that end up in the resources.
    They are entirely different, and have completely different address
    ranges.
    --
    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/

    \
     
     \ /
      Last update: 2012-05-29 23:21    [W:0.047 / U:0.956 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site