Skip to content

Linux 5.15 exposes a single core instead of 4 on Hive Unmatched (riscv64 board) #536

Closed

Description

@zorun

What version of hwloc are you using?

Latest git (057fc67)

./utils/lstopo/lstopo --version
lstopo 2.9.0a1-git

Which operating system and hardware are you running on?

$ ./utils/lstopo/lstopo -
Machine (16GB total)
  Package L#0
    NUMANode L#0 (P#0 16GB)
    L2 L#0 (2048KB) + Core L#0
      L1d L#0 (32KB) + L1i L#0 (32KB) + PU L#0 (P#0)
      L1d L#1 (32KB) + L1i L#1 (32KB) + PU L#1 (P#1)
      L1d L#2 (32KB) + L1i L#2 (32KB) + PU L#2 (P#2)
      L1d L#3 (32KB) + L1i L#3 (32KB) + PU L#3 (P#3)
  HostBridge
    PCIBridge
      PCIBridge
        PCIBridge
          PCI 06:00.0 (NVMExp)
            Block(Disk) "nvme0n1"
  Block "mmcblk0"
  Net "eth0"

Details of the problem

  • hwloc detects a single core with 4 threads:
$ ./utils/hwloc/hwloc-calc -N core all
1
$ ./utils/hwloc/hwloc-calc -N pu all
4
  • as far as I understand the hardware, it's supposed to have 4 cores

Additional information

You normally already have access to the gcc farm for remote debugging.

Activity

  1. bgoglin commented on Jul 5, 2022

    @bgoglin
    Contributor

    Hello. I wondered the same when testing the gcc farm yesterday. Linux is showing a single core with 4 threads. I saw some possibly related patched on the Linux kernel mailing list today, I'll ask if they could fix this kernel bug.

  2. changed the title [-]hwloc detects a single core instead of 4 on Hive Unmatched (riscv64 board)[/-] [+]Linux 5.15 exposes a single core instead of 4 on Hive Unmatched (riscv64 board)[/+] on Jul 5, 2022
  3. zorun commented on Jul 5, 2022

    @zorun
    Author

    Right, thanks!

    Note that gcc91 has the correct amount of cores detected (2), but it's a different SoC and it's running with a newer kernel (5.18.5)

  4. bgoglin commented on Jul 5, 2022

    @bgoglin
    Contributor

    Reported the issue to RISC-V developers at https://lkml.org/lkml/2022/7/5/1568 and there are now kernel patches at https://lore.kernel.org/linux-riscv/20220705190435.1790466-1-mail@conchuod.ie/ which should fix the issue.

  5. ConchuOD commented on Jul 6, 2022

    @ConchuOD

    Oh dear, I didn't realise that I would spam /your/ issue by doing that. Good ole overzealous github...

  6. bgoglin commented on Jul 6, 2022

    @bgoglin
    Contributor

    Don't worry @ConchuOD , that's fine, we can unsubscribe from the issue if needed (but I won't).

  7. zorun commented on Jul 6, 2022

    @zorun
    Author

    Thanks a lot for the detective work and the quick patch!

    And sorry about the misleading comment on the VisionFive, I totally forgot that we're using a downstream kernel...

  8. ConchuOD commented on Jul 7, 2022

    @ConchuOD

    Thanks a lot for the detective work and the quick patch!

    My hope is to get the addition of defaults backported & the cpu-map stuff into v5.20 (but not backport it).

    And sorry about the misleading comment on the VisionFive, I totally forgot that we're using a downstream kernel...

    Ye I knew there was a vendor kernel but I completely forgot about it too.. dw about it :)

  9. 216 remaining items

  10. bgoglin commented on Oct 25, 2022

    @bgoglin
    Contributor

    Looks like the fix has reached 6.1 and been backported to stables series, I am closing this issue, thanks.

  11. ConchuOD commented on Oct 25, 2022

    @ConchuOD

    Looks like the fix has reached 6.1 and been backported to stables series, I am closing this issue, thanks.

    Yeah, although I don't think the stable kernels have technically been released I think closing it is fair at this point. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions