From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 102553] Venus PRO R9 M265X amdgpu: Kernel OOPS si_dpm_set_power_state unable to handle kernel NULL pointer dereference
Date: Sun, 11 Mar 2018 18:51:19 +0000 [thread overview]
Message-ID: <bug-102553-502-88ABgvuRtk@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-102553-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 2717 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102553
--- Comment #9 from mercuriete <mercuriete@yahoo.es> ---
my investigations ends in this macro:
drivers/gpu/drm/amd/amdgpu/amdgpu.h
#define amdgpu_set_pcie_lanes(adev, l)
(adev)->asic_funcs->set_pcie_lanes((adev), (l))
then if you see this file:
drivers/gpu/drm/amd/amdgpu/si.c
static const struct amdgpu_asic_funcs si_asic_funcs =
{
.read_disabled_bios = &si_read_disabled_bios,
.read_bios_from_rom = &si_read_bios_from_rom,
.read_register = &si_read_register,
.reset = &si_asic_reset,
.set_vga_state = &si_vga_set_state,
.get_xclk = &si_get_xclk,
.set_uvd_clocks = &si_set_uvd_clocks,
.set_vce_clocks = NULL,
.get_config_memsize = &si_get_config_memsize,
};
There are no set_pcie_lanes in that struct
so in this file:
drivers/gpu/drm/amd/amdgpu/si_dpm.c
if (new_lane_width != current_lane_width) {
amdgpu_set_pcie_lanes(adev, new_lane_width);
lane_width = amdgpu_get_pcie_lanes(adev);
si_write_smc_soft_register(adev,
SI_SMC_SOFT_REGISTER_non_ulv_pcie_link_width, lane_width);
}
You are jumping to null.
Please answer me soon to know if i am wrong or if i am right.
PS: in radeon the implementation of that functions is in this file:
drivers/gpu/drm/radeon/radeon_asic.c
static struct radeon_asic si_asic = {
...
...
.pm = {
.misc = &evergreen_pm_misc,
.prepare = &evergreen_pm_prepare,
.finish = &evergreen_pm_finish,
.init_profile = &sumo_pm_init_profile,
.get_dynpm_state = &r600_pm_get_dynpm_state,
.get_engine_clock = &radeon_atom_get_engine_clock,
.set_engine_clock = &radeon_atom_set_engine_clock,
.get_memory_clock = &radeon_atom_get_memory_clock,
.set_memory_clock = &radeon_atom_set_memory_clock,
.get_pcie_lanes = &r600_get_pcie_lanes,
.set_pcie_lanes = &r600_set_pcie_lanes,
.set_clock_gating = NULL,
.set_uvd_clocks = &si_set_uvd_clocks,
.set_vce_clocks = &si_set_vce_clocks,
.get_temperature = &si_get_temp,
},
r600_set_pcie_lanes is in this file:
drivers/gpu/drm/radeon/r600.c
void r600_set_pcie_lanes(struct radeon_device *rdev, int lanes)
{
PS2: So sumarizing the problem is in the macro
(adev)->asic_funcs->set_pcie_lanes
that doesn't exists.
Thanks you very much
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3720 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2018-03-11 18:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 20:23 [Bug 102553] Venus PRO R9 M265X amdgpu: Kernel OOPS si_dpm_set_power_state unable to handle kernel NULL pointer dereference bugzilla-daemon
2017-11-19 2:14 ` bugzilla-daemon
2018-03-03 9:49 ` bugzilla-daemon
2018-03-03 11:11 ` bugzilla-daemon
2018-03-03 11:17 ` bugzilla-daemon
2018-03-04 12:14 ` bugzilla-daemon
2018-03-05 21:51 ` bugzilla-daemon
2018-03-07 22:34 ` bugzilla-daemon
2018-03-07 22:36 ` bugzilla-daemon
2018-03-11 18:51 ` bugzilla-daemon [this message]
2018-03-11 20:00 ` bugzilla-daemon
2018-03-12 21:19 ` bugzilla-daemon
2018-03-29 23:21 ` bugzilla-daemon
2018-03-30 18:35 ` bugzilla-daemon
2018-03-30 22:02 ` bugzilla-daemon
2018-03-31 16:38 ` bugzilla-daemon
2018-04-01 17:24 ` bugzilla-daemon
2018-04-01 17:57 ` bugzilla-daemon
2018-04-01 17:59 ` bugzilla-daemon
2018-04-01 17:59 ` bugzilla-daemon
2018-04-10 18:57 ` bugzilla-daemon
2018-04-14 1:15 ` bugzilla-daemon
2018-04-16 13:22 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-102553-502-88ABgvuRtk@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox