lkml.org 
[lkml]   [2011]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[046/244] sparc64: Only Panther cheetah+ chips have POPC.
    3.0-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: "David S. Miller" <davem@davemloft.net>

    commit 1a8e0da5937a6c87807083baa318cf8f98dac9aa upstream.

    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    arch/sparc/kernel/setup_64.c | 10 ++++++++--
    1 file changed, 8 insertions(+), 2 deletions(-)

    --- a/arch/sparc/kernel/setup_64.c
    +++ b/arch/sparc/kernel/setup_64.c
    @@ -440,8 +440,14 @@ static void __init init_sparc64_elf_hwca
    cap |= AV_SPARC_VIS;
    if (tlb_type == cheetah || tlb_type == cheetah_plus)
    cap |= AV_SPARC_VIS | AV_SPARC_VIS2;
    - if (tlb_type == cheetah_plus)
    - cap |= AV_SPARC_POPC;
    + if (tlb_type == cheetah_plus) {
    + unsigned long impl, ver;
    +
    + __asm__ __volatile__("rdpr %%ver, %0" : "=r" (ver));
    + impl = ((ver >> 32) & 0xffff);
    + if (impl == PANTHER_IMPL)
    + cap |= AV_SPARC_POPC;
    + }
    if (tlb_type == hypervisor) {
    if (sun4v_chip_type == SUN4V_CHIP_NIAGARA1)
    cap |= AV_SPARC_ASI_BLK_INIT;



    \
     
     \ /
      Last update: 2011-09-29 01:07    [W:0.020 / U:29.384 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site