1. 28 Aug, 2015 3 commits
    • Gavin Shan's avatar
      powerpc/eeh: Fix fenced PHB caused by eeh_slot_error_detail() · 25980013
      Gavin Shan authored
      The config space of some PCI devices can't be accessed when their
      PEs are in frozen state. Otherwise, fenced PHB might be seen.
      Those PEs are identified with flag EEH_PE_CFG_RESTRICTED, meaing
      EEH_PE_CFG_BLOCKED is set automatically when the PE is put to
      frozen state (EEH_PE_ISOLATED). eeh_slot_error_detail() restores
      PCI device BARs with eeh_pe_restore_bars(), which then calls
      eeh_ops->restore_config() to reinitialize the PCI device in
      (OPAL) firmware. eeh_ops->restore_config() produces PCI config
      access that causes fenced PHB. The problem was reported on below
      adapter:
      
         0001:01:00.0 0200: 14e4:168e (rev 10)
         0001:01:00.0 Ethernet controller: Broadcom Corporation \
                      NetXtreme II BCM57810 10 Gigabit Ethernet (rev 10)
      
      This fixes the issue by skipping eeh_pe_restore_bars() in
      eeh_slot_error_detail() when EEH_PE_CFG_BLOCKED is set for the PE.
      
      Fixes: b6541db1 ("powerpc/eeh: Block PCI config access upon frozen PE")
      Cc: stable@vger.kernel.org # v4.0+
      Reported-by: default avatarManvanthara B. Puttashankar <mputtash@in.ibm.com>
      Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      25980013
    • Gavin Shan's avatar
      powerpc/pseries: Cleanup on pci_dn_reconfig_notifier() · ea0f8acf
      Gavin Shan authored
      This applies cleanup on pci_dn_reconfig_notifier(), no functional
      changes:
      
         * Rename variable "pci" to "pdn" to indicate its purpose clearly.
         * The parent node can be released at any time. So it should be
           hold with of_get_parent() before accessing it.
         * The device node doesn't have to have parent node in theory.
           More check on this.
      Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      ea0f8acf
    • Gavin Shan's avatar
      powerpc/pseries: Fix corrupted pdn list · 590c7567
      Gavin Shan authored
      Commit cca87d30 ("powerpc/pci: Refactor pci_dn") introduced pdn
      list for SRIOV VFs. It means the pdn is be put into the child list
      of its parent pdn when the pdn is created. When doing PCI hot
      unplugging on pSeries, the PCI device node as well as its pdn are
      released through procfs entry "powerpc/ofdt". Some one else grabs
      the memory chunk of the pdn and update it accordingly. At the same
      time, the pdn is still tracked in the child list of parent pdn. It
      leads to corrupted child list in the parent pdn.
      
      This fixes above issue by removing the pdn from the child list of
      its parent pdn when the device node is detached from the system.
      Note the pdn is free'd when the device node is released if the
      device node is dynamic one. Otherwise, the device node as well
      as the pdn won't be released.
      
      Fixes: cca87d30 ("powerpc/pci: Refactor pci_dn")
      Cc: stable@vger.kernel.org # 4.1+
      Reported-by: default avatarSantwana Samantray <santwana.samantray@in.ibm.com>
      Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      590c7567
  2. 27 Aug, 2015 5 commits
  3. 22 Aug, 2015 2 commits
  4. 20 Aug, 2015 10 commits
  5. 19 Aug, 2015 2 commits
    • Gerhard Sittig's avatar
      powerpc/512x: silence a USB Kconfig dependency warning · acf6cec8
      Gerhard Sittig authored
      the PPC_MPC512x config automatically selected USB_EHCI_BIG_ENDIAN_*
      switches, which made Kconfig warn about "unmet direct dependencies":
      
        scripts/kconfig/conf --silentoldconfig Kconfig
        warning: (PPC_MPC512x && 440EPX) selects USB_EHCI_BIG_ENDIAN_DESC which has unmet direct dependencies (USB_SUPPORT && USB && USB_EHCI_HCD)
        warning: (PPC_MPC512x && PPC_PS3 && PPC_CELLEB && 440EPX) selects USB_EHCI_BIG_ENDIAN_MMIO which has unmet direct dependencies (USB_SUPPORT && USB && USB_EHCI_HCD)
        warning: (PPC_MPC512x && 440EPX) selects USB_EHCI_BIG_ENDIAN_DESC which has unmet direct dependencies (USB_SUPPORT && USB && USB_EHCI_HCD)
        warning: (PPC_MPC512x && PPC_PS3 && PPC_CELLEB && 440EPX) selects USB_EHCI_BIG_ENDIAN_MMIO which has unmet direct dependencies (USB_SUPPORT && USB && USB_EHCI_HCD)
      
      make the selected entries additionally depend on USB_EHCI_HCD which
      silences the warning
      Signed-off-by: default avatarGerhard Sittig <gsi@denx.de>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      acf6cec8
    • Hari Bathini's avatar
      powerpc/nvram: print no error when pstore backend is not nvram · 74943dab
      Hari Bathini authored
      Pstore only supports one backend at a time. The preferred
      pstore backend is set by passing the pstore.backend=<name>
      argument to the kernel at boot time. Currently, while trying
      to register with pstore, nvram throws an error message even
      when "pstore.backend != nvram", which is unnecessary. This
      patch removes the error message in case "pstore.backend != nvram".
      Signed-off-by: default avatarHari Bathini <hbathini@linux.vnet.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      74943dab
  6. 18 Aug, 2015 16 commits
  7. 17 Aug, 2015 2 commits
    • Priyanka Jain's avatar
      powerpc/fsl-booke: Add T1040D4RDB/T1042D4RDB board support · 0d748ec5
      Priyanka Jain authored
      T1040D4RDB/T1042D4RDB are Freescale Reference Design Board
      which can support T1040/T1042 QorIQ Power
      Architecture processor respectively
      
      T1040D4RDB/T1042D4RDB board Overview
      -------------------------------------
      - SERDES Connections, 8 lanes supporting:
              - PCI
              - SGMII
              - SATA 2.0
              - QSGMII(only for T1040D4RDB)
          - DDR Controller
              - Supports rates of up to 1600 MHz data-rate
              - Supports one DDR4 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/T1042D4RDB board:
          -add device tree
          -Add entry in corenet_generic.c
      Signed-off-by: default avatarPriyanka Jain <Priyanka.Jain@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      0d748ec5
    • Hou Zhiqiang's avatar
      powerpc/85xx: Remove unused pci fixup hooks on c293pcie · 32d3c4ff
      Hou Zhiqiang authored
      The c293pcie board is an endpoint device and it doesn't need PM,
      so remove hooks pcibios_fixup_phb and pcibios_fixup_bus.
      Signed-off-by: default avatarHou Zhiqiang <B48286@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      32d3c4ff