1. 25 4月, 2017 1 次提交
  2. 24 4月, 2017 1 次提交
  3. 12 4月, 2017 1 次提交
    • M
      arm64: Silence spurious kbuild warning on menuconfig · d91750f1
      Marc Zyngier 提交于
      Since bbb56c27 ("arm64: Add detection code for broken .inst support
      in binutils"), running any make target that doesn't involve the cross
      compiler results in a spurious warning:
      
      $ make ARCH=arm64 menuconfig
      arch/arm64/Makefile:43: Detected assembler with broken .inst; disassembly will be unreliable
      
      while
      
      $ make ARCH=arm64 CROSS_COMPILE=aarch64-arm-linux- menuconfig
      
      is silent (assuming your compiler is not affected). That's because
      the code that tests for the workaround is always run, irrespective
      of the current configuration being available or not.
      
      An easy fix is to make the detection conditional on CONFIG_ARM64
      being defined, which is only the case when actually building
      something.
      
      Fixes: bbb56c27 ("arm64: Add detection code for broken .inst support in binutils")
      Reviewed-by: NRobin Murphy <robin.murphy@arm.com>
      Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      d91750f1
  4. 11 4月, 2017 3 次提交
    • M
      arm64: pmuv3: use arm_pmu ACPI framework · f00fa5f4
      Mark Rutland 提交于
      Now that we have a framework to handle the ACPI bits, make the PMUv3
      code use this. The framework is a little different to what was
      originally envisaged, and we can drop some unused support code in the
      process of moving over to it.
      Signed-off-by: NMark Rutland <mark.rutland@arm.com>
      Tested-by: NJeremy Linton <jeremy.linton@arm.com>
      [will: make armv8_pmu_driver_init static]
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      f00fa5f4
    • M
      arm64: pmuv3: handle !PMUv3 when probing · f1b36dcb
      Mark Rutland 提交于
      When probing via ACPI, we won't know up-front whether a CPU has a PMUv3
      compatible PMU. Thus we need to consult ID registers during probe time.
      
      This patch updates our PMUv3 probing code to test for the presence of
      PMUv3 functionality before touching an PMUv3-specific registers, and
      before updating the struct arm_pmu with PMUv3 data.
      
      When a PMUv3-compatible PMU is not present, probing will return -ENODEV.
      Signed-off-by: NMark Rutland <mark.rutland@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      f1b36dcb
    • M
      arm64: add function to get a cpu's MADT GICC table · e0013aed
      Mark Rutland 提交于
      Currently the ACPI parking protocol code needs to parse each CPU's MADT
      GICC table to extract the mailbox address and so on. Each time we parse
      a GICC table, we call back to the parking protocol code to parse it.
      
      This has been fine so far, but we're about to have more code that needs
      to extract data from the GICC tables, and adding a callback for each
      user is going to get unwieldy.
      
      Instead, this patch ensures that we stash a copy of each CPU's GICC
      table at boot time, such that anything needing to parse it can later
      request it. This will allow for other parsers of GICC, and for
      simplification to the ACPI parking protocol code. Note that we must
      store a copy, rather than a pointer, since the core ACPI code
      temporarily maps/unmaps tables while iterating over them.
      
      Since we parse the MADT before we know how many CPUs we have (and hence
      before we setup the percpu areas), we must use an NR_CPUS sized array.
      Signed-off-by: NMark Rutland <mark.rutland@arm.com>
      Reviewed-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Tested-by: NJeremy Linton <jeremy.linton@arm.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      e0013aed
  5. 07 4月, 2017 6 次提交
  6. 06 4月, 2017 9 次提交
  7. 05 4月, 2017 7 次提交
  8. 04 4月, 2017 1 次提交
  9. 23 3月, 2017 11 次提交