Skip to content

Reclocked HAINAN chips - #270

Closed
hikagura99 wants to merge 1 commit into
zen-kernel:5.15/masterfrom
hikagura99:patch-1
Closed

hikagura99 wants to merge 1 commit into
zen-kernel:5.15/masterfrom
hikagura99:patch-1

Conversation

@hikagura99

Copy link
Copy Markdown

Reclocked HAINAN chips to their factory clock (1030MHz) since it is hard coded and not overclockable by hand. Having it run at 730MHz is as not having it whatsoever

Reclocked HAINAN chips to their factory clock (1030MHz) since it is hard coded and not overclockable by hand. Having it run at 730MHz is as not having it whatsoever
@damentz

damentz commented Dec 20, 2021

Copy link
Copy Markdown
Member

Hmm, I have three issues with this merge request:

  1. There's multiple GPUs that go by the Hainan code name, each with different max clock speeds: https://www.techpowerup.com/gpu-specs/amd-hainan.g817. It's very likely that the max clock speed set in the kernel is to account for all the different variations of this GPU.
  2. This GPU architecture is from 2011-2012, would anyone actually benefit from running the highest potential clock speed? I'm assuming most users of these GPUs today just use them for the desktop and screen compositing
  3. There's multiple instance of the string rade that you randomly added to many lines, what is that for?

@heftig

heftig commented Dec 20, 2021

Copy link
Copy Markdown

Apparently the clock speed was reduced deliberately because of instability in many instances.

@damentz

damentz commented Dec 22, 2021

Copy link
Copy Markdown
Member

Ok, with that, I think we'll just close this pull request. The only upside to increasing the clock speed is if you happen to have the golden chip that can handle the higher frequency. Meanwhile, all the other GPUs that are overclocked will fail to boot.

@damentz damentz closed this Dec 22, 2021
heftig pushed a commit that referenced this pull request Oct 15, 2023
Add a new test case which performs double query of the bpf_mprog through
libbpf API, but also via raw bpf(2) syscall. This is testing to gather
first the count and then in a subsequent probe the full information with
the program array without clearing passed structs in between.

  # ./vmtest.sh -- ./test_progs -t tc_opts
  [...]
  ./test_progs -t tc_opts
  [    1.398818] tsc: Refined TSC clocksource calibration: 3407.999 MHz
  [    1.400263] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x311fd336761, max_idle_ns: 440795243819 ns
  [    1.402734] clocksource: Switched to clocksource tsc
  [    1.426639] bpf_testmod: loading out-of-tree module taints kernel.
  [    1.428112] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
  #252     tc_opts_after:OK
  #253     tc_opts_append:OK
  #254     tc_opts_basic:OK
  #255     tc_opts_before:OK
  #256     tc_opts_chain_classic:OK
  #257     tc_opts_chain_mixed:OK
  #258     tc_opts_delete_empty:OK
  #259     tc_opts_demixed:OK
  #260     tc_opts_detach:OK
  #261     tc_opts_detach_after:OK
  #262     tc_opts_detach_before:OK
  #263     tc_opts_dev_cleanup:OK
  #264     tc_opts_invalid:OK
  #265     tc_opts_max:OK
  #266     tc_opts_mixed:OK
  #267     tc_opts_prepend:OK
  #268     tc_opts_query:OK            <--- (new test)
  #269     tc_opts_replace:OK
  #270     tc_opts_revision:OK
  Summary: 19/0 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
heftig pushed a commit that referenced this pull request Oct 15, 2023
Add a new test case to query on an empty bpf_mprog and pass the revision
directly into expected_revision for attachment to assert that this does
succeed.

  ./test_progs -t tc_opts
  [    1.406778] tsc: Refined TSC clocksource calibration: 3407.990 MHz
  [    1.408863] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x311fcaf6eb0, max_idle_ns: 440795321766 ns
  [    1.412419] clocksource: Switched to clocksource tsc
  [    1.428671] bpf_testmod: loading out-of-tree module taints kernel.
  [    1.430260] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
  #252     tc_opts_after:OK
  #253     tc_opts_append:OK
  #254     tc_opts_basic:OK
  #255     tc_opts_before:OK
  #256     tc_opts_chain_classic:OK
  #257     tc_opts_chain_mixed:OK
  #258     tc_opts_delete_empty:OK
  #259     tc_opts_demixed:OK
  #260     tc_opts_detach:OK
  #261     tc_opts_detach_after:OK
  #262     tc_opts_detach_before:OK
  #263     tc_opts_dev_cleanup:OK
  #264     tc_opts_invalid:OK
  #265     tc_opts_max:OK
  #266     tc_opts_mixed:OK
  #267     tc_opts_prepend:OK
  #268     tc_opts_query:OK
  #269     tc_opts_query_attach:OK     <--- (new test)
  #270     tc_opts_replace:OK
  #271     tc_opts_revision:OK
  Summary: 20/0 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants