dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 115321] radeon runpm falsely disabled on Clevo P170EM
Date: Sat, 16 Jul 2016 13:55:18 +0000	[thread overview]
Message-ID: <bug-115321-2300-Ubyc7u18IR@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-115321-2300@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=115321

--- Comment #12 from Christoph Haag <haagch.christoph@googlemail.com> ---
First is the one radeon_atpx_init(); call that I added manually to
radeon_device_init in order to make it work:
[    6.083965] CPU: 5 PID: 295 Comm: systemd-udevd Not tainted 4.6.0-mainline
#1
[    6.083966] Hardware name: CLEVO                             P170EM/P170EM,
BIOS 4.6.5 08/22/2012
[    6.083968]  0000000000000286 00000000ab74fc8d ffff88007f8e7960
ffffffff8131c6e8
[    6.083970]  ffff88080a2c4000 ffff88080a2c5b80 ffff88007f8e79a0
ffffffffa093dc15
[    6.083972]  ffffffff81455aba ffff88080a2c4000 00000000ab74fc8d
ffff88080a2c4000
[    6.083974] Call Trace:
[    6.083978]  [<ffffffff8131c6e8>] dump_stack+0x76/0x9e
[    6.084014]  [<ffffffffa093dc15>] radeon_atpx_init+0x35/0x240 [radeon]
[    6.084017]  [<ffffffff81455aba>] ? vga_client_register+0x8a/0xa0
[    6.084039]  [<ffffffffa08451a5>] radeon_device_init+0x875/0xcd0 [radeon]
[    6.084060]  [<ffffffffa0847900>] radeon_driver_load_kms+0xb0/0x230 [radeon]
[    6.084066]  [<ffffffffa000a34a>] drm_dev_register+0xba/0xd0 [drm]
[    6.084070]  [<ffffffffa000c9b1>] drm_get_pci_dev+0xe1/0x1f0 [drm]
[    6.084090]  [<ffffffffa08434c3>] radeon_pci_probe+0xc3/0xe0 [radeon]
[    6.084092]  [<ffffffff81366d74>] local_pci_probe+0x54/0xb0
[    6.084094]  [<ffffffff81366ca3>] ? pci_match_device+0xf3/0x120
[    6.084095]  [<ffffffff813680e8>] pci_device_probe+0x118/0x170
[    6.084098]  [<ffffffff814613ef>] driver_probe_device+0x23f/0x450
[    6.084100]  [<ffffffff814616e0>] __driver_attach+0xe0/0x100
[    6.084102]  [<ffffffff81461600>] ? driver_probe_device+0x450/0x450
[    6.084103]  [<ffffffff8145ea1b>] bus_for_each_dev+0x7b/0xc0
[    6.084105]  [<ffffffff814609b1>] driver_attach+0x31/0x40
[    6.084107]  [<ffffffff81460366>] bus_add_driver+0x1d6/0x2a0
[    6.084109]  [<ffffffff814621f3>] driver_register+0x73/0xf0
[    6.084110]  [<ffffffff8136643f>] __pci_register_driver+0x5f/0x70
[    6.084115]  [<ffffffffa000cbaf>] drm_pci_init+0xef/0x120 [drm]
[    6.084117]  [<ffffffff8145884d>] ?
vga_switcheroo_register_handler+0x7d/0xa0
[    6.084119]  [<ffffffffa09b5000>] ? 0xffffffffa09b5000
[    6.084140]  [<ffffffffa09b50ab>] radeon_init+0xab/0xc0 [radeon]
[    6.084142]  [<ffffffff81002152>] do_one_initcall+0xc2/0x200
[    6.084144]  [<ffffffff811d6e08>] ? __vunmap+0x98/0xe0
[    6.084146]  [<ffffffff811d6ee1>] ? vfree+0x41/0x80
[    6.084149]  [<ffffffff8118a881>] do_init_module+0x72/0x1f1
[    6.084151]  [<ffffffff81119cf2>] load_module+0x2192/0x29c0
[    6.084153]  [<ffffffff81116c50>] ? symbol_put_addr+0x60/0x60
[    6.084155]  [<ffffffff811c2c8b>] ? __pte_alloc_kernel+0xbb/0x110
[    6.084158]  [<ffffffff8111a682>] SyS_init_module+0x162/0x1a0
[    6.084160]  [<ffffffff81612ab2>] entry_SYSCALL_64_fastpath+0x1a/0xa4

Next there's a call that I did in printk() which I removed here because it's
the same as the next:

Next is radeon_device_init calling radeon_has_atpx_dgpu_power_cntl() and the
result would be used to disable runpm without the atpx init before:
[    6.094760] CPU: 1 PID: 295 Comm: systemd-udevd Not tainted 4.6.0-mainline
#1
[    6.094762] Hardware name: CLEVO                             P170EM/P170EM,
BIOS 4.6.5 08/22/2012
[    6.094763]  0000000000000286 00000000ab74fc8d ffff88007f8e7990
ffffffff8131c6e8
[    6.094766]  ffff88080a2c4000 ffff88080a2c5b80 ffff88007f8e79a0
ffffffffa093de71
[    6.094767]  ffff88007f8e79e0 ffffffffa0845349 ffff880000000000
ffff880809dc5000
[    6.094770] Call Trace:
[    6.094774]  [<ffffffff8131c6e8>] dump_stack+0x76/0x9e
[    6.094808]  [<ffffffffa093de71>] radeon_has_atpx_dgpu_power_cntl+0x21/0x30
[radeon]
[    6.094829]  [<ffffffffa0845349>] radeon_device_init+0xa19/0xcd0 [radeon]
[    6.094849]  [<ffffffffa0847900>] radeon_driver_load_kms+0xb0/0x230 [radeon]
[    6.094855]  [<ffffffffa000a34a>] drm_dev_register+0xba/0xd0 [drm]
[    6.094860]  [<ffffffffa000c9b1>] drm_get_pci_dev+0xe1/0x1f0 [drm]
[    6.094880]  [<ffffffffa08434c3>] radeon_pci_probe+0xc3/0xe0 [radeon]
[    6.094882]  [<ffffffff81366d74>] local_pci_probe+0x54/0xb0
[    6.094884]  [<ffffffff81366ca3>] ? pci_match_device+0xf3/0x120
[    6.094885]  [<ffffffff813680e8>] pci_device_probe+0x118/0x170
[    6.094888]  [<ffffffff814613ef>] driver_probe_device+0x23f/0x450
[    6.094890]  [<ffffffff814616e0>] __driver_attach+0xe0/0x100
[    6.094892]  [<ffffffff81461600>] ? driver_probe_device+0x450/0x450
[    6.094893]  [<ffffffff8145ea1b>] bus_for_each_dev+0x7b/0xc0
[    6.094895]  [<ffffffff814609b1>] driver_attach+0x31/0x40
[    6.094897]  [<ffffffff81460366>] bus_add_driver+0x1d6/0x2a0
[    6.094899]  [<ffffffff814621f3>] driver_register+0x73/0xf0
[    6.094900]  [<ffffffff8136643f>] __pci_register_driver+0x5f/0x70
[    6.094905]  [<ffffffffa000cbaf>] drm_pci_init+0xef/0x120 [drm]
[    6.094907]  [<ffffffff8145884d>] ?
vga_switcheroo_register_handler+0x7d/0xa0
[    6.094909]  [<ffffffffa09b5000>] ? 0xffffffffa09b5000
[    6.094929]  [<ffffffffa09b50ab>] radeon_init+0xab/0xc0 [radeon]
[    6.094931]  [<ffffffff81002152>] do_one_initcall+0xc2/0x200
[    6.094934]  [<ffffffff811d6e08>] ? __vunmap+0x98/0xe0
[    6.094936]  [<ffffffff811d6ee1>] ? vfree+0x41/0x80
[    6.094938]  [<ffffffff8118a881>] do_init_module+0x72/0x1f1
[    6.094941]  [<ffffffff81119cf2>] load_module+0x2192/0x29c0
[    6.094943]  [<ffffffff81116c50>] ? symbol_put_addr+0x60/0x60
[    6.094944]  [<ffffffff811c2c8b>] ? __pte_alloc_kernel+0xbb/0x110
[    6.094947]  [<ffffffff8111a682>] SyS_init_module+0x162/0x1a0
[    6.094951]  [<ffffffff81612ab2>] entry_SYSCALL_64_fastpath+0x1a/0xa4

And finally here is where the kernel inits the atpx stuff by default:
[    6.096398] CPU: 1 PID: 295 Comm: systemd-udevd Not tainted 4.6.0-mainline
#1
[    6.096400] Hardware name: CLEVO                             P170EM/P170EM,
BIOS 4.6.5 08/22/2012
[    6.096401]  0000000000000286 00000000ab74fc8d ffff88007f8e78e0
ffffffff8131c6e8
[    6.096406]  ffff880809001700 0000000000000001 ffff88007f8e7920
ffffffffa093dc15
[    6.096408]  ffff88007f8e7900 00000000ab74fc8d 00000000ab74fc8d
ffff880809001700
[    6.096411] Call Trace:
[    6.096416]  [<ffffffff8131c6e8>] dump_stack+0x76/0x9e
[    6.096461]  [<ffffffffa093dc15>] radeon_atpx_init+0x35/0x240 [radeon]
[    6.096466]  [<ffffffff814ea83c>] vga_switcheroo_enable+0x2e/0x11e
[    6.096470]  [<ffffffff8145896d>] register_client+0xfd/0x110
[    6.096473]  [<ffffffff814589fb>] vga_switcheroo_register_client+0x4b/0x60
[    6.096511]  [<ffffffffa0845372>] radeon_device_init+0xa42/0xcd0 [radeon]
[    6.096549]  [<ffffffffa0847900>] radeon_driver_load_kms+0xb0/0x230 [radeon]
[    6.096558]  [<ffffffffa000a34a>] drm_dev_register+0xba/0xd0 [drm]
[    6.096566]  [<ffffffffa000c9b1>] drm_get_pci_dev+0xe1/0x1f0 [drm]
[    6.096603]  [<ffffffffa08434c3>] radeon_pci_probe+0xc3/0xe0 [radeon]
[    6.096606]  [<ffffffff81366d74>] local_pci_probe+0x54/0xb0
[    6.096609]  [<ffffffff81366ca3>] ? pci_match_device+0xf3/0x120
[    6.096612]  [<ffffffff813680e8>] pci_device_probe+0x118/0x170
[    6.096615]  [<ffffffff814613ef>] driver_probe_device+0x23f/0x450
[    6.096618]  [<ffffffff814616e0>] __driver_attach+0xe0/0x100
[    6.096621]  [<ffffffff81461600>] ? driver_probe_device+0x450/0x450
[    6.096624]  [<ffffffff8145ea1b>] bus_for_each_dev+0x7b/0xc0
[    6.096627]  [<ffffffff814609b1>] driver_attach+0x31/0x40
[    6.096630]  [<ffffffff81460366>] bus_add_driver+0x1d6/0x2a0
[    6.096633]  [<ffffffff814621f3>] driver_register+0x73/0xf0
[    6.096636]  [<ffffffff8136643f>] __pci_register_driver+0x5f/0x70
[    6.096644]  [<ffffffffa000cbaf>] drm_pci_init+0xef/0x120 [drm]
[    6.096647]  [<ffffffff8145884d>] ?
vga_switcheroo_register_handler+0x7d/0xa0
[    6.096650]  [<ffffffffa09b5000>] ? 0xffffffffa09b5000
[    6.096686]  [<ffffffffa09b50ab>] radeon_init+0xab/0xc0 [radeon]
[    6.096689]  [<ffffffff81002152>] do_one_initcall+0xc2/0x200
[    6.096693]  [<ffffffff811d6e08>] ? __vunmap+0x98/0xe0
[    6.096696]  [<ffffffff811d6ee1>] ? vfree+0x41/0x80
[    6.096700]  [<ffffffff8118a881>] do_init_module+0x72/0x1f1
[    6.096703]  [<ffffffff81119cf2>] load_module+0x2192/0x29c0
[    6.096706]  [<ffffffff81116c50>] ? symbol_put_addr+0x60/0x60
[    6.096708]  [<ffffffff811c2c8b>] ? __pte_alloc_kernel+0xbb/0x110
[    6.096713]  [<ffffffff8111a682>] SyS_init_module+0x162/0x1a0
[    6.096719]  [<ffffffff81612ab2>] entry_SYSCALL_64_fastpath+0x1a/0xa4

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2016-07-16 13:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-27 10:17 [Bug 115321] New: radeon runpm falsely disabled on Clevo P170EM bugzilla-daemon
2016-04-14  3:26 ` [Bug 115321] " bugzilla-daemon
2016-04-14  3:26 ` bugzilla-daemon
2016-04-14 15:27 ` bugzilla-daemon
2016-07-15 13:57 ` bugzilla-daemon
2016-07-15 14:19 ` bugzilla-daemon
2016-07-15 15:21 ` bugzilla-daemon
2016-07-15 15:26 ` bugzilla-daemon
2016-07-15 19:30 ` bugzilla-daemon
2016-07-15 19:42 ` bugzilla-daemon
2016-07-16 13:20 ` bugzilla-daemon
2016-07-16 13:39 ` bugzilla-daemon
2016-07-16 13:55 ` bugzilla-daemon [this message]
2016-07-16 13:59 ` bugzilla-daemon
2016-07-16 14:17 ` bugzilla-daemon
2016-08-24 14:07 ` 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-115321-2300-Ubyc7u18IR@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.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