1. 23 5月, 2014 16 次提交
    • A
      PPC: ePAPR: Fix hypercall on LE guest · 8cb59788
      Alexander Graf 提交于
      We get an array of instructions from the hypervisor via device tree that
      we write into a buffer that gets executed whenever we want to make an
      ePAPR compliant hypercall.
      
      However, the hypervisor passes us these instructions in BE order which
      we have to manually convert to LE when we want to run them in LE mode.
      
      With this fixup in place, I can successfully run LE kernels with KVM
      PV enabled on PR KVM.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      8cb59788
    • H
      powerpc/mpc85xx: Add BSC9132 QDS Support · 1be62c6c
      harninder rai 提交于
      - BSC9132 is an integrated device that targets Femto base station market.
        It combines Power Architecture e500v2 and DSP StarCore SC3850 technologies
        with MAPLE-B2F baseband acceleration processing elements
      
      - BSC9132QDS Overview
           2Gbyte DDR3 (on board DDR)
           32Mbyte 16bit NOR flash
           128Mbyte 2K page size NAND Flash
           256 Kbit M24256 I2C EEPROM
           128 Mbit SPI Flash memory
           SD slot
           eTSEC1: Connected to SGMII PHY
           eTSEC2: Connected to SGMII PHY
           DUART interface: supports one UARTs up to 115200 bps for console display
      Signed-off-by: NHarninder Rai <harninder.rai@freescale.com>
      Signed-off-by: NRuchika Gupta <ruchika.gupta@freescale.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      1be62c6c
    • L
      powerpc/mpc85xx: Remove P1023 RDS support · fd7e5b7a
      Lijun Pan 提交于
      P1023RDS is no longer supported/manufactured by Freescale while P1023RDB is.
      Signed-off-by: NLijun Pan <Lijun.Pan@freescale.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      fd7e5b7a
    • S
      powerpc/mpic: Don't init the fsl error int until after mpic init · aa80581d
      Scott Wood 提交于
      Besides other potential problems, if MPIC_NO_RESET is  not set,
      the error interrupt will be masked after it is requested.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      aa80581d
    • P
      powerpc/fsl-booke: Add initial T104x_QDS board support · 0c0fc4d3
      Prabhakar Kushwaha 提交于
      Add support for T104x board in board file t104x_qds.c, It is common for
       both T1040 and T1042 as they share same QDS board.
      
       T1040QDS board Overview
       -----------------------
       - SERDES Connections, 8 lanes supporting:
            — PCI Express: supporting Gen 1 and Gen 2;
            — SGMII
            — QSGMII
            — SATA 2.0
            — Aurora debug with dedicated connectors (T1040 only)
       - DDR Controller
           - Supports rates of up to 1600 MHz data-rate
           - Supports one DDR3LP UDIMM/RDIMMs, of single-, dual- or quad-rank types.
       -IFC/Local Bus
           - NAND flash: 8-bit, async, up to 2GB.
           - NOR: 8-bit or 16-bit, non-multiplexed, up to 512MB
           - GASIC: Simple (minimal) target within Qixis FPGA
           - PromJET rapid memory download support
       - Ethernet
           - Two on-board RGMII 10/100/1G ethernet ports.
           - PHY #0 remains powered up during deep-sleep (T1040 only)
       - QIXIS System Logic FPGA
       - Clocks
           - System and DDR clock (SYSCLK, “DDRCLK”)
           - SERDES clocks
       - Power Supplies
       - Video
           - DIU supports video at up to 1280x1024x32bpp
       - USB
           - Supports two USB 2.0 ports with integrated PHYs
           — Two type A ports with 5V@1.5A per port.
           — Second port can be converted to OTG mini-AB
       - SDHC
           - SDHC port connects directly to an adapter card slot, featuring:
           - Supporting SD slots for: SD, SDHC (1x, 4x, 8x) and/or MMC
           — Supporting eMMC memory devices
       - SPI
          -  On-board support of 3 different devices and sizes
       - Other IO
          - Two Serial ports
          - ProfiBus port
          - Four I2C ports
      
      Add T104xQDS support in Kconfig and Makefile. Also create device tree.
      Following features are currently not implmented.
        - SerDes: Aurora
        - IFC: GASIC, Promjet
        - QIXIS
        - Ethernet
        - DIU
        - power supplies management
        - ProfiBus
      Signed-off-by: NPriyanka Jain <Priyanka.Jain@freescale.com>
      Signed-off-by: NPoonam Aggrwal <poonam.aggrwal@freescale.com>
      Signed-off-by: NPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      0c0fc4d3
    • P
      powerpc/mpc85xx:Add initial device tree support of T104x · fb734eee
      Prabhakar Kushwaha 提交于
      The QorIQ T1040/T1042 processor support four integrated 64-bit e5500 PA
      processor cores with high-performance data path acceleration architecture
      and network peripheral interfaces required for networking & telecommunications.
      
      T1042 personality is a reduced personality of T1040 without Integrated 8-port
      Gigabit Ethernet switch.
      
      The T1040/T1042 SoC includes the following function and features:
      
       - Four e5500 cores, each with a private 256 KB L2 cache
       - 256 KB shared L3 CoreNet platform cache (CPC)
       - Interconnect CoreNet platform
       - 32-/64-bit DDR3L/DDR4 SDRAM memory controller with ECC and interleaving
         support
       - Data Path Acceleration Architecture (DPAA) incorporating acceleration
       for the following functions:
          -  Packet parsing, classification, and distribution
          -  Queue management for scheduling, packet sequencing, and congestion
          	management
          -  Cryptography Acceleration (SEC 5.0)
          - RegEx Pattern Matching Acceleration (PME 2.2)
          - IEEE Std 1588 support
          - Hardware buffer management for buffer allocation and deallocation
       - Ethernet interfaces
          - Integrated 8-port Gigabit Ethernet switch (T1040 only)
          - Four 1 Gbps Ethernet controllers
       - Two RGMII interfaces or one RGMII and one MII interfaces
       - High speed peripheral interfaces
         - Four PCI Express 2.0 controllers running at up to 5 GHz
         - Two SATA controllers supporting 1.5 and 3.0 Gb/s operation
         - Upto two QSGMII interface
         - Upto six SGMII interface supporting 1000 Mbps
         - One SGMII interface supporting upto 2500 Mbps
       - Additional peripheral interfaces
         - Two USB 2.0 controllers with integrated PHY
         - SD/eSDHC/eMMC
         -  eSPI controller
         - Four I2C controllers
         - Four UARTs
         - Four GPIO controllers
         - Integrated flash controller (IFC)
         - Change this to  LCD/ HDMI interface (DIU) with 12 bit dual data rate
         - TDM interface
       - Multicore programmable interrupt controller (PIC)
       - Two 8-channel DMA engines
       - Single source clocking implementation
       - Deep Sleep power implementaion (wakeup from GPIO/Timer/Ethernet/USB)
      Signed-off-by: NPoonam Aggrwal <poonam.aggrwal@freescale.com>
      Signed-off-by: NPriyanka Jain <Priyanka.Jain@freescale.com>
      Signed-off-by: NVarun Sethi <Varun.Sethi@freescale.com>
      Signed-off-by: NPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      fb734eee
    • D
      powerpc/fsl: Updated corenet-cf compatible string for corenet1-cf chips · 846c9443
      Diana Craciun 提交于
      Updated the device trees according to the corenet-cf
      binding definition.
      Signed-off-by: NDiana Craciun <Diana.Craciun@freescale.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      846c9443
    • D
      powerpc/fsl: Updated device trees for platforms with corenet version 2 · f2e7bfbb
      Diana Craciun 提交于
      Updated the device trees according to the corenet-cf
      binding definition.
      Signed-off-by: NDiana Craciun <Diana.Craciun@freescale.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      f2e7bfbb
    • S
      powerpc: Fix unused variable warning for epapr_has_idle · 8067bd8a
      Scott Wood 提交于
      This warning can be seen in allyesconfig, and was introduced by commit
      f9eb581c63b2acce827570e105205c0789360650 "powerpc: fix build of
      epapr_paravirt on 64-bit book3s".
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      8067bd8a
    • S
      powerpc: fix build of epapr_paravirt on 64-bit book3s · 440d74d1
      Scott Wood 提交于
      This fixes an allyesconfig build break introduced by commit
      7762b1ed7aaee223230793fcee80672e2e3aa7a8 "powerpc: move epapr paravirt
      init of power_save to an initcall".
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Stuart Yoder <stuart.yoder@freescale.com>
      440d74d1
    • S
      powerpc: move epapr paravirt init of power_save to an initcall · 83e267d7
      Stuart Yoder 提交于
      some restructuring of epapr paravirt init resulted in
      ppc_md.power_save being set, and then overwritten to
      NULL during machine_init.  This patch splits the
      initialization of ppc_md.power_save out into a postcore
      init call.
      Signed-off-by: NStuart Yoder <stuart.yoder@freescale.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      83e267d7
    • M
      powerpc/85xx: Add OCA4080 board support · 2b09c603
      Martijn de Gouw 提交于
      OCA4080 overview:
      - 1.466 GHz Freescale QorIQ P4080E Processor
      - 4Gbyte DDR3 on board
      - 8Mbyte Nor flash
      - Serial RapidIO 1.2
      - 1 x 10/100/1000 BASE-T front ethernet
      - 1 x 1000 BASE-BX ethernet on AMC connector
      Signed-off-by: NMartijn de Gouw <martijn.de.gouw@prodrive.nl>
      [scottwood@freescale.com: minor conflict-related changes]
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      2b09c603
    • V
      powerpc/mpc85xx: add support for Keymile's kmcoge4 board · 497c8b60
      Valentin Longchamp 提交于
      This patch introduces the support for Keymile's kmcoge4 board which is
      the internal reference design for boards based on Freescale's
      P2040/P2041 SoCs. This internal reference design is named kmp204x.
      
      The peripherals used on this board are:
      - SPI NOR Flash as bootloader medium
      - NAND Flash with a ubi partition
      - 2 PCIe busses (hosts 1 and 3)
      - 3 FMAN Ethernet devices (FMAN1 DTSEC1/2/5)
      - 4 Local Bus windows, with one dedicated to the QRIO reset/power mgmt
        CPLD
      - 2 I2C busses
      - last but not least, the mandatory serial port
      
      The patch also adds a defconfig file for this reference design that is
      necessary because of the lowmem option that must be set higher due to
      the number of PCIe devices with big ioremapped mem ranges on the boad.
      Signed-off-by: NValentin Longchamp <valentin.longchamp@keymile.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      497c8b60
    • W
      fsl/pci: fix RC cannot detect PME message coming · dd41d514
      Wang Dongsheng 提交于
      PCI controller disable PME message report feature, that shouldn't
      have happened. Fix it and enable PME message report feature.
      Signed-off-by: NWang Dongsheng <dongsheng.wang@freescale.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      dd41d514
    • L
      powerpc/rmu: Fix the error memory free parameters · 1c075f95
      Liu Gang 提交于
      There are error parameters should be corrected when
      calling dma_free_coherent to free rmu rx-ring buffers
      in fsl_open_inb_mbox() function.
      Signed-off-by: NLiu Gang <Gang.Liu@freescale.com>
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      1c075f95
    • S
      powerpc/fsl-booke64: Set vmemmap_psize to 4K · e57eeae4
      Scott Wood 提交于
      The only way Freescale booke chips support mappings larger than 4K
      is via TLB1.  The only way we support (direct) TLB1 entries is via
      hugetlb, which is not what map_kernel_page() does when given a large
      page size.
      
      Without this, a kernel with CONFIG_SPARSEMEM_VMEMMAP enabled crashes on
      boot with messages such as:
      
      PID hash table entries: 4096 (order: 3, 32768 bytes)
      Sorting __ex_table...
      BUG: Bad page state in process swapper  pfn:00a2f
      page:8000040000023a48 count:0 mapcount:0 mapping:0000040000ffce48 index:0x40000ffbe50
      page flags: 0x40000ffda40(active|arch_1|private|private_2|head|tail|swapcache|mappedtodisk|reclaim|swapbacked|unevictable|mlocked)
      page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
      bad because of flags:
      page flags: 0x311840(active|private|private_2|swapcache|unevictable|mlocked)
      Modules linked in:
      CPU: 0 PID: 0 Comm: swapper Not tainted 3.15.0-rc1-00003-g7fa250c #299
      Call Trace:
      [c00000000098ba20] [c000000000008b3c] .show_stack+0x7c/0x1cc (unreliable)
      [c00000000098baf0] [c00000000060aa50] .dump_stack+0x88/0xb4
      [c00000000098bb70] [c0000000000c0468] .bad_page+0x144/0x1a0
      [c00000000098bc10] [c0000000000c0628] .free_pages_prepare+0x164/0x17c
      [c00000000098bcc0] [c0000000000c24cc] .free_hot_cold_page+0x48/0x214
      [c00000000098bd60] [c00000000086c318] .free_all_bootmem+0x1fc/0x354
      [c00000000098be70] [c00000000085da84] .mem_init+0xac/0xdc
      [c00000000098bef0] [c0000000008547b0] .start_kernel+0x21c/0x4d4
      [c00000000098bf90] [c000000000000448] .start_here_common+0x20/0x58
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      e57eeae4
  2. 10 5月, 2014 1 次提交
    • S
      powerpc/fsl-rio: Fix fsl_rio_setup error paths and use-after-unmap · a614db9a
      Scott Wood 提交于
      Several of the error paths from fsl_rio_setup are missing error
      messages.
      
      Worse, fsl_rio_setup initializes several global pointers and does not
      NULL them out after freeing/unmapping on error.  This caused
      fsl_rio_mcheck_exception() to crash when accessing rio_regs_win which
      was non-NULL but had been unmapped.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Cc: Liu Gang <Gang.Liu@freescale.com>
      ---
      Liu Gang, are you sure all of these error conditions are fatal?  Why
      does the rio driver fail if rmu is not present (e.g.  on t4240)?
      a614db9a
  3. 01 5月, 2014 7 次提交
  4. 30 4月, 2014 1 次提交
    • P
      powerpc: memcpy optimization for 64bit LE · 00f554fa
      Philippe Bergheaud 提交于
      Unaligned stores take alignment exceptions on POWER7 running in little-endian.
      This is a dumb little-endian base memcpy that prevents unaligned stores.
      Once booted the feature fixup code switches over to the VMX copy loops
      (which are already endian safe).
      
      The question is what we do before that switch over. The base 64bit
      memcpy takes alignment exceptions on POWER7 so we can't use it as is.
      Fixing the causes of alignment exception would slow it down, because
      we'd need to ensure all loads and stores are aligned either through
      rotate tricks or bytewise loads and stores. Either would be bad for
      all other 64bit platforms.
      
      [ I simplified the loop a bit - Anton ]
      Signed-off-by: NPhilippe Bergheaud <felix@linux.vnet.ibm.com>
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      00f554fa
  5. 28 4月, 2014 15 次提交