30 Sep, 2015

1 commit


07 Apr, 2015

1 commit

  • The celleb code has seen no actual development for ~7 years.

    We (maintainers) have no access to test hardware, and it is highly
    likely the code has bit-rotted.

    As far as we're aware the hardware was never widely available, and is
    certainly no longer available, and no one on the list has shown any
    interest in it over the years.

    So remove it. If anyone has one and cares please speak up.

    Signed-off-by: Michael Ellerman
    Acked-by: Benjamin Herrenschmidt
    Acked-by: Jeremy Kerr

    Michael Ellerman
     

01 Apr, 2015

1 commit


24 Mar, 2015

2 commits


16 Mar, 2015

7 commits

  • We use r6 and r7 for epapr boot, but the current pre-C init will clobber
    both of these.

    This change does a simple replacement, of r6 -> r12 and r7 -> r13, so
    that we hit platform init with these registers intact.

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Michael Ellerman

    Jeremy Kerr
     
  • Currently, a 64-bit little-endian zImage.epapr won't boot in epapr mode,
    as we never return from platform_init.

    Before entering C, we initialise our stack by setting r1 16 bytes below
    the end of the _bss_stack:

    stwu r0,-16(r1) /* establish a stack frame */

    However, the called function will save the caller's lr in the caller's
    frame's lr save area, at -16(r1) to -32(r1).

    This means that writes to the fdt variable will corrupt the saved link
    register:

    0000000020c06018 l O .bss 0000000000001000 _bss_stack
    0000000020c07018 l O .bss 0000000000000008 fdt

    We'll need at least 32 bytes in the initial stack frame, to handle the
    LR save area. We bump this to 112 bytes, as that'll be the max required
    by ABIv1.

    Thanks to Alistair Popple for debugging help.

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Michael Ellerman

    Jeremy Kerr
     
  • We'll likely be entering the zImage.epapr as BE, so include the pseries
    implementation of _zimage_start, which adds the endian fixup magic.

    Although the endian fixup won't work on Book III-E machines starting LE,
    the current entry point doesn't support LE anyway, so we shouldn't be
    breaking anything.

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Michael Ellerman

    Jeremy Kerr
     
  • For epapr-style boot, we may be little-endian. This change implements
    the proper conversion for fdt*_to_cpu and cpu_to_fdt*. We also need the
    full cpu_to_* and *_to_cpu macros for this.

    Signed-off-by: Jeremy Kerr
    Acked-by: Benjamin Herrenschmidt
    Signed-off-by: Michael Ellerman

    Jeremy Kerr
     
  • Now that the wrapper supports 64-bit builds, we see warnings when
    attempting to cast pointers to int. Use unsigned long instead.

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Michael Ellerman

    Jeremy Kerr
     
  • Drop planetcore_set_serial_speed() which had no users since its
    inception in commit fec6047047fd ("[POWERPC] bootwrapper: Add PlanetCore
    firmware support") in 2007.

    Signed-off-by: Arseny Solokha
    Signed-off-by: Michael Ellerman

    Arseny Solokha
     
  • The $(image-n) variable will never exist, because unset Kconfig options
    are '' and not 'n'.

    Signed-off-by: Michal Marek
    Signed-off-by: Michael Ellerman

    Michal Marek
     

30 Jan, 2015

6 commits


18 Nov, 2014

1 commit


10 Nov, 2014

1 commit

  • On some platforms a 5 second timeout during boot might be quite long, so
    make it configurable. Run the loop at least once to let the user stop
    the boot by holding a key pressed. If the timeout is set to 0, don't
    wait for input, which can be used as a workaround if the boot hangs on
    random data coming in on the serial port.

    Signed-off-by: Simon Kagstrom
    [mpe: Changelog wording & whitespace]
    Signed-off-by: Michael Ellerman

    Simon Kagstrom
     

08 Nov, 2014

5 commits


12 Oct, 2014

1 commit

  • Pull powerpc updates from Michael Ellerman:
    "Here's a first pull request for powerpc updates for 3.18.

    The bulk of the additions are for the "cxl" driver, for IBM's Coherent
    Accelerator Processor Interface (CAPI). Most of it's in drivers/misc,
    which Greg & Arnd maintain, Greg said he was happy for us to take it
    through our tree.

    There's the usual minor cleanups and fixes, including a bit of noise
    in drivers from some of those. A bunch of updates to our EEH code,
    which has been getting more testing. Several nice speedups from
    Anton, including 20% in clear_page().

    And a bunch of updates for freescale from Scott"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux: (130 commits)
    cxl: Fix afu_read() not doing finish_wait() on signal or non-blocking
    cxl: Add documentation for userspace APIs
    cxl: Add driver to Kbuild and Makefiles
    cxl: Add userspace header file
    cxl: Driver code for powernv PCIe based cards for userspace access
    cxl: Add base builtin support
    powerpc/mm: Add hooks for cxl
    powerpc/opal: Add PHB to cxl mode call
    powerpc/mm: Add new hash_page_mm()
    powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts
    cxl: Add new header for call backs and structs
    powerpc/powernv: Split out set MSI IRQ chip code
    powerpc/mm: Export mmu_kernel_ssize and mmu_linear_psize
    powerpc/msi: Improve IRQ bitmap allocator
    powerpc/cell: Make spu_flush_all_slbs() generic
    powerpc/cell: Move data segment faulting code out of cell platform
    powerpc/cell: Move spu_handle_mm_fault() out of cell platform
    powerpc/pseries: Use new defines when calling H_SET_MODE
    powerpc: Update contact info in Documentation files
    powerpc/perf/hv-24x7: Simplify catalog_read()
    ...

    Linus Torvalds
     

08 Oct, 2014

1 commit

  • Pull "trivial tree" updates from Jiri Kosina:
    "Usual pile from trivial tree everyone is so eagerly waiting for"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (39 commits)
    Remove MN10300_PROC_MN2WS0038
    mei: fix comments
    treewide: Fix typos in Kconfig
    kprobes: update jprobe_example.c for do_fork() change
    Documentation: change "&" to "and" in Documentation/applying-patches.txt
    Documentation: remove obsolete pcmcia-cs from Changes
    Documentation: update links in Changes
    Documentation: Docbook: Fix generated DocBook/kernel-api.xml
    score: Remove GENERIC_HAS_IOMAP
    gpio: fix 'CONFIG_GPIO_IRQCHIP' comments
    tty: doc: Fix grammar in serial/tty
    dma-debug: modify check_for_stack output
    treewide: fix errors in printk
    genirq: fix reference in devm_request_threaded_irq comment
    treewide: fix synchronize_rcu() in comments
    checkstack.pl: port to AArch64
    doc: queue-sysfs: minor fixes
    init/do_mounts: better syntax description
    MIPS: fix comment spelling
    powerpc/simpleboot: fix comment
    ...

    Linus Torvalds
     

04 Oct, 2014

1 commit


25 Sep, 2014

1 commit

  • in commit 29f1aff2c (powerpc: Copy bootable images in the default
    install script) we changed to copying all the built boot targets based
    on the assumption that it's backwards compatible. It turns out that
    debian devived installkernel scripts will barf if not given exactly 4
    args.

    This change reverts make install to just install the vmlinux (we can
    change the dfault in a seperate patch) and introduces a new make
    zInstall which works with a more flexible installkernel script.

    Cc: Grant Likely
    Signed-off-by: Tony Breeds
    Signed-off-by: Michael Ellerman

    Tony Breeds
     

17 Sep, 2014

1 commit


10 Sep, 2014

2 commits

  • T1042RDB_PI is Freescale Reference Design Board supporting the T1042
    QorIQ Power Architecture™ processor. T1042 is a reduced personality
    of T1040 SoC without Integrated 8-port Gigabit. The board is designed
    with low power features targeted for Printing Image Market.

    T1042RDB_PI is similar to T1040RDB board with few differences like
    it has video interface, supports T1042 personality only

    T1042RDB_PI board Overview
    -----------------------
    - SERDES Connections, 8 lanes supporting:
    - PCI
    - SATA 2.0
    - DDR Controller
    - Supports rates of up to 1600 MHz data-rate
    - Supports one DDR3LP UDIMM
    -IFC/Local Bus
    - NAND flash: 1GB 8-bit NAND flash
    - NOR: 128MB 16-bit NOR Flash
    - Ethernet
    - Two on-board RGMII 10/100/1G ethernet ports.
    - PHY #0 remains powered up during deep-sleep
    - CPLD
    - Clocks
    - System and DDR clock (SYSCLK, “DDRCLK”)
    - SERDES clocks
    - Power Supplies
    - USB
    - Supports two USB 2.0 ports with integrated PHYs
    - Two type A ports with 5V@1.5A per port.
    - SDHC
    - SDHC/SDXC connector
    - SPI
    - On-board 64MB SPI flash
    - I2C
    - Device connected: EEPROM, thermal monitor, VID controller, RTC
    - Other IO
    - Two Serial ports
    - ProfiBus port

    Add support for T1042RDB_PI board:
    -add device tree
    -Add entry in corenet_generic.c, as it is similar to other corenet platforms

    Signed-off-by: Poonam Aggrwal
    Signed-off-by: Prabhakar Kushwaha
    Signed-off-by: Priyanka Jain
    Signed-off-by: Scott Wood

    Priyanka Jain
     
  • T1040/T1042RDB is Freescale Reference Design Board.
    The board can support both T1040/T1042 QorIQ Power Architecture™ processor.

    T1040/T1042RDB board Overview
    -----------------------
    - SERDES Connections, 8 lanes supporting:
    - PCI
    - SGMII
    - QSGMII
    - SATA 2.0
    - DDR Controller
    - Supports rates of up to 1600 MHz data-rate
    - Supports one DDR3LP UDIMM
    -IFC/Local Bus
    - NAND flash: 1GB 8-bit NAND flash
    - NOR: 128MB 16-bit NOR Flash
    - Ethernet
    - Two on-board RGMII 10/100/1G ethernet ports.
    - PHY #0 remains powered up during deep-sleep
    - CPLD
    - Clocks
    - System and DDR clock (SYSCLK, “DDRCLK”)
    - SERDES clocks
    - Power Supplies
    - USB
    - Supports two USB 2.0 ports with integrated PHYs
    - Two type A ports with 5V@1.5A per port.
    - SDHC
    - SDHC/SDXC connector
    - SPI
    - On-board 64MB SPI flash
    - I2C
    - Devices connected: EEPROM, thermal monitor, VID controller
    - Other IO
    - Two Serial ports
    - ProfiBus port

    Add support for T1040/T1042 RDB board:
    -add device tree
    -add entry in Kconfig to build
    -Add entry in corenet_generic.c, as it is similar to other corenet platforms

    Signed-off-by: Priyanka Jain
    Signed-off-by: Poonam Aggrwal
    Signed-off-by: Prabhakar Kushwaha
    Signed-off-by: Scott Wood

    Priyanka Jain
     

04 Sep, 2014

1 commit


26 Aug, 2014

1 commit


15 Aug, 2014

1 commit

  • Pull more powerpc updates from Ben Herrenschmidt:
    "Here are some more powerpc bits for 3.17, essentially fixes.

    The biggest series, also aimed at -stable, is from Aneesh and is the
    result of weeks and weeks of debugging to find out why the heck or THP
    implementation was occasionally triggering multi-hit errors in our
    level 1 TLB. It ended up being a combination of issues including
    subtleties as to how we should invalidate those special 'MPSS' pages
    we use to allow the use of 16M pages inside 4K/64K "base page size"
    segments (you really have to love our MMU !)

    Another interesting one in the "OMG" category is the series from
    Michael adding memory barriers to spin_is_locked(). That's also the
    result of many days of debugging to figure out why the semaphore code
    would occasionally crash in ways that made no sense. It ended up
    being some creative lock stacking that was defeated by the fact that
    our locks allow a load inside the locked section to be re-ordered with
    the load of the lock value itself (I'm still of two mind about whether
    to kill that once and for all by putting a heavier barrier back into
    our lock implementation...). The fixes come with a long explanation
    in the cset comments, feel free to read it if you feel like having a
    headache today"

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (25 commits)
    powerpc/thp: Add tracepoints to track hugepage invalidate
    powerpc/mm: Use read barrier when creating real_pte
    powerpc/thp: Use ACCESS_ONCE when loading pmdp
    powerpc/thp: Invalidate with vpn in loop
    powerpc/thp: Handle combo pages in invalidate
    powerpc/thp: Invalidate old 64K based hash page mapping before insert of 4k pte
    powerpc/thp: Don't recompute vsid and ssize in loop on invalidate
    powerpc/thp: Add write barrier after updating the valid bit
    powerpc: reorder per-cpu NUMA information's initialization
    powerpc/perf/hv-24x7: Use kmem_cache_free
    powerpc/pseries/hvcserver: Fix endian issue in hvcs_get_partner_info
    powerpc: Hard disable interrupts in xmon
    powerpc: remove duplicate definition of TEXASR_FS
    powerpc/pseries: Avoid deadlock on removing ddw
    powerpc/pseries: Failure on removing device node
    powerpc/boot: Use correct zlib types for comparison
    powerpc/powernv: Interface to register/unregister opal dump region
    printk: Add function to return log buffer address and size
    powerpc: Add POWER8 features to CPU_FTRS_POSSIBLE/ALWAYS
    powerpc/ppc476: Disable BTAC
    ...

    Linus Torvalds
     

13 Aug, 2014

1 commit


11 Aug, 2014

1 commit

  • Pull slave-dma updates from Vinod Koul:
    "Some notable changes are:
    - new driver for AMBA AXI NBPF by Guennadi
    - new driver for sun6i controller by Maxime
    - pl330 drivers fixes from Lar's
    - sh-dma updates and fixes from Laurent, Geert and Kuninori
    - Documentation updates from Geert
    - drivers fixes and updates spread over dw, edma, freescale, mpc512x
    etc.."

    * 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma: (72 commits)
    dmaengine: sun6i: depends on RESET_CONTROLLER
    dma: at_hdmac: fix invalid remaining bytes detection
    dmaengine: nbpfaxi: don't build this driver where it cannot be used
    dmaengine: nbpf_error_get_channel() can be static
    dma: pl08x: Use correct specifier for size_t values
    dmaengine: Remove the context argument to the prep_dma_cyclic operation
    dmaengine: nbpfaxi: convert to tasklet
    dmaengine: nbpfaxi: fix a theoretical race
    dmaengine: add a driver for AMBA AXI NBPF DMAC IP cores
    dmaengine: add device tree binding documentation for the nbpfaxi driver
    dmaengine: edma: Do not register second device when booted with DT
    dmaengine: edma: Do not change the error code returned from edma_alloc_slot
    dmaengine: rcar-dmac: Add device tree bindings documentation
    dmaengine: shdma: Allocate cyclic sg list dynamically
    dmaengine: shdma: Make channel filter ignore unrelated devices
    dmaengine: sh: Rework Kconfig and Makefile
    dmaengine: sun6i: Fix memory leaks
    dmaengine: sun6i: Free the interrupt before killing the tasklet
    dmaengine: sun6i: Remove switch statement from buswidth convertion routine
    dmaengine: of: kconfig: select DMA_ENGINE when DMA_OF is selected
    ...

    Linus Torvalds
     

07 Aug, 2014

1 commit

  • Pull powerpc updates from Ben Herrenschmidt:
    "This is the powerpc new goodies for 3.17. The short story:

    The biggest bit is Michael removing all of pre-POWER4 processor
    support from the 64-bit kernel. POWER3 and rs64. This gets rid of a
    ton of old cruft that has been bitrotting in a long while. It was
    broken for quite a few versions already and nobody noticed. Nobody
    uses those machines anymore. While at it, he cleaned up a bunch of
    old dusty cabinets, getting rid of a skeletton or two.

    Then, we have some base VFIO support for KVM, which allows assigning
    of PCI devices to KVM guests, support for large 64-bit BARs on
    "powernv" platforms, support for HMI (Hardware Management Interrupts)
    on those same platforms, some sparse-vmemmap improvements (for memory
    hotplug),

    There is the usual batch of Freescale embedded updates (summary in the
    merge commit) and fixes here or there, I think that's it for the
    highlights"

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (102 commits)
    powerpc/eeh: Export eeh_iommu_group_to_pe()
    powerpc/eeh: Add missing #ifdef CONFIG_IOMMU_API
    powerpc: Reduce scariness of interrupt frames in stack traces
    powerpc: start loop at section start of start in vmemmap_populated()
    powerpc: implement vmemmap_free()
    powerpc: implement vmemmap_remove_mapping() for BOOK3S
    powerpc: implement vmemmap_list_free()
    powerpc: Fail remap_4k_pfn() if PFN doesn't fit inside PTE
    powerpc/book3s: Fix endianess issue for HMI handling on napping cpus.
    powerpc/book3s: handle HMIs for cpus in nap mode.
    powerpc/powernv: Invoke opal call to handle hmi.
    powerpc/book3s: Add basic infrastructure to handle HMI in Linux.
    powerpc/iommu: Fix comments with it_page_shift
    powerpc/powernv: Handle compound PE in config accessors
    powerpc/powernv: Handle compound PE for EEH
    powerpc/powernv: Handle compound PE
    powerpc/powernv: Split ioda_eeh_get_state()
    powerpc/powernv: Allow to freeze PE
    powerpc/powernv: Enable M64 aperatus for PHB3
    powerpc/eeh: Aux PE data for error log
    ...

    Linus Torvalds
     

05 Aug, 2014

1 commit


31 Jul, 2014

1 commit

  • T2080PCIe-RDB is a Freescale Reference Design Board that hosts T2080 SoC.
    The board feature overview:
    Processor:
    - T2080 SoC integrating four 64-bit dual-threads e6500 cores up to 1.8GHz
    DDR Memory:
    - Single memory controller capable of supporting DDR3 and DDR3-LP devices
    - 72bit 4GB DDR3-LP SODIMM in slot
    Ethernet interfaces:
    - Two 1Gbps RGMII ports on-board
    - Two 10Gbps SFP+ ports on-board
    - Two 10Gbps Base-T ports on-board
    Accelerator:
    - DPAA components consist of FMan, BMan, QMan, PME, DCE and SEC
    IFC/Local Bus
    - NOR: 128MB 16-bit NOR flash
    - NAND: 1GB 8-bit NAND flash
    - CPLD: for system controlling with programable header on-board
    eSPI:
    - 64MB N25Q512 SPI flash
    USB:
    - Two USB2.0 ports with internal PHY (both Type-A)
    PCIe:
    - One PCIe x4 goldfinger(support SR-IOV)
    - One PCIe x4 slot
    - One PCIe x2 end-point device (C293 crypto co-processor)
    SATA:
    - Two SATA 2.0 ports on-board
    SDHC:
    - support a MicroSD/TF card on-board
    I2C:
    - Four I2C controllers.
    UART:
    - Dual 4-pins UART serial ports

    Signed-off-by: Shengzhou Liu
    Signed-off-by: Scott Wood

    Shengzhou Liu