Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoongArch: Add cpufreq driver and ls2k500sfb driver support #143

Merged

Conversation

sterling-teng
Copy link
Contributor

No description provided.

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zeno-sole for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot
Copy link

Hi @sterling-teng. Thanks for your PR.

I'm waiting for a deepin-community member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

drivers/cpufreq/loongson3-acpi-cpufreq.c Outdated Show resolved Hide resolved
arch/loongarch/include/asm/fpu.h Show resolved Hide resolved
drivers/cpufreq/loongson3-acpi-cpufreq.c Outdated Show resolved Hide resolved
Signed-off-by: zhangtianyang <[email protected]>
Signed-off-by: liuyun <[email protected]>
Signed-off-by: Yanteng Si <[email protected]>
Signed-off-by: Chong Qiao <[email protected]>
Signed-off-by: Hongchen Zhang <[email protected]>
Signed-off-by: Yanteng Si <[email protected]>
Signed-off-by: Chong Qiao <[email protected]>
Signed-off-by: Hongchen Zhang <[email protected]>
Signed-off-by: Yanteng Si <[email protected]>
Signed-off-by: Chong Qiao <[email protected]>
Signed-off-by: Hongchen Zhang <[email protected]>
Signed-off-by: Yanteng Si <[email protected]>
Update deepin_loongarch_desktop_defconfig and loongson3_defconfig.

Signed-off-by: Chong Qiao <[email protected]>
Signed-off-by: Hongchen Zhang <[email protected]>
Signed-off-by: Yanteng Si <[email protected]>
if (cpufreq_get_current_driver())
return -EEXIST;

if (cpufreq_supported_detect()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在不支持cpufreq的机器上测试是这里慢的300ms

@opsiff
Copy link
Member

opsiff commented May 16, 2024

/ok-to-test

@deepin-ci-robot
Copy link

deepin pr auto review

This is the Linux 3.15-rc1 source code for the simplefb driver, which is
used to create a framebuffer on some systems with an LS2K500SuperMarioBros
graphics chip. The driver was written by Koen Vervaeke and is available from
http://git.kernel.org/cgit/linux/drivers/char/simplefb.git.

The simplefb driver is a simple framebuffer driver for the Linux graphics
stack. It is designed to be used with the fbcon API and is not a general
purpose framebuffer driver. The main advantages of this driver are its
simplicity and the fact that it works without any external dependencies.

The simplefb driver supports the following formats: 16-bit RGB555, 32-bit
ARGB16, 16-bit ARGB2, 8-bit paletted, and 24-bit RGB. It also supports
different resolutions and pixel formats.

The driver is designed to be used with the fbcon API, which is a framework
for managing multiple framebuffers. It provides a simple way to create,
manipulate, and destroy framebuffers, as well as to map and unmap their
memory.

The simplefb driver is designed to work on systems with an LS2K500SuperMarioBros
graphics chip. It should work on any system with an LS2K500SuperMarioBros chip,
but this has not been tested. The driver was written by Koen Vervaeke and is
available from http://git.kernel.org/cgit/linux/drivers/char/simplefb.git.

@Avenger-285714 Avenger-285714 merged commit 0b4b9d5 into deepin-community:linux-6.6.y May 16, 2024
2 of 3 checks passed
Avenger-285714 added a commit that referenced this pull request May 16, 2024
Include follow 5 commits:
* 0b4b9d5 LoongArch: Update defconfig
  17d60be LoongArch: fix ls2k500 bmc not work when installing iso
  e020f90 ipmi: add ls2k500 bmc ipmi support.
  0d6b46e fbdev: add ls2k500sfb driver for ls2k500 bmc.
  a6a3487 cpufreq: Add cpufreq driver for LoongArch

Signed-off-by: Yanteng Si <[email protected]>
Signed-off-by: WangYuli <[email protected]>
Avenger-285714 pushed a commit to Avenger-285714/DeepinKernel that referenced this pull request Oct 6, 2024
[ Upstream commit e7f3187 ]

Recently, when running './test_progs -j', I occasionally hit the
following errors:

  test_lwt_redirect:PASS:pthread_create 0 nsec
  test_lwt_redirect_run:FAIL:netns_create unexpected error: 256 (errno 0)
  deepin-community#142/2   lwt_redirect/lwt_redirect_normal_nomac:FAIL
  deepin-community#142     lwt_redirect:FAIL
  test_lwt_reroute:PASS:pthread_create 0 nsec
  test_lwt_reroute_run:FAIL:netns_create unexpected error: 256 (errno 0)
  test_lwt_reroute:PASS:pthread_join 0 nsec
  deepin-community#143/2   lwt_reroute/lwt_reroute_qdisc_dropped:FAIL
  deepin-community#143     lwt_reroute:FAIL

The netns_create() definition looks like below:

  #define NETNS "ns_lwt"
  static inline int netns_create(void)
  {
        return system("ip netns add " NETNS);
  }

One possibility is that both lwt_redirect and lwt_reroute create
netns with the same name "ns_lwt" which may cause conflict. I tried
the following example:
  $ sudo ip netns add abc
  $ echo $?
  0
  $ sudo ip netns add abc
  Cannot create namespace file "/var/run/netns/abc": File exists
  $ echo $?
  1
  $

The return code for above netns_create() is 256. The internet search
suggests that the return value for 'ip netns add ns_lwt' is 1, which
matches the above 'sudo ip netns add abc' example.

This patch tried to use different netns names for two tests to avoid
'ip netns add <name>' failure.

I ran './test_progs -j' 10 times and all succeeded with
lwt_redirect/lwt_reroute tests.

Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Tested-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Stable-dep-of: 16b795cc5952 ("selftests/bpf: Fix redefinition errors compiling lwt_reroute.c")
Signed-off-by: Sasha Levin <[email protected]>
Avenger-285714 pushed a commit that referenced this pull request Oct 6, 2024
[ Upstream commit e7f3187 ]

Recently, when running './test_progs -j', I occasionally hit the
following errors:

  test_lwt_redirect:PASS:pthread_create 0 nsec
  test_lwt_redirect_run:FAIL:netns_create unexpected error: 256 (errno 0)
  #142/2   lwt_redirect/lwt_redirect_normal_nomac:FAIL
  #142     lwt_redirect:FAIL
  test_lwt_reroute:PASS:pthread_create 0 nsec
  test_lwt_reroute_run:FAIL:netns_create unexpected error: 256 (errno 0)
  test_lwt_reroute:PASS:pthread_join 0 nsec
  #143/2   lwt_reroute/lwt_reroute_qdisc_dropped:FAIL
  #143     lwt_reroute:FAIL

The netns_create() definition looks like below:

  #define NETNS "ns_lwt"
  static inline int netns_create(void)
  {
        return system("ip netns add " NETNS);
  }

One possibility is that both lwt_redirect and lwt_reroute create
netns with the same name "ns_lwt" which may cause conflict. I tried
the following example:
  $ sudo ip netns add abc
  $ echo $?
  0
  $ sudo ip netns add abc
  Cannot create namespace file "/var/run/netns/abc": File exists
  $ echo $?
  1
  $

The return code for above netns_create() is 256. The internet search
suggests that the return value for 'ip netns add ns_lwt' is 1, which
matches the above 'sudo ip netns add abc' example.

This patch tried to use different netns names for two tests to avoid
'ip netns add <name>' failure.

I ran './test_progs -j' 10 times and all succeeded with
lwt_redirect/lwt_reroute tests.

Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Tested-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Stable-dep-of: 16b795cc5952 ("selftests/bpf: Fix redefinition errors compiling lwt_reroute.c")
Signed-off-by: Sasha Levin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants