<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Macbook pro 11,5 screen flicker when AC adapter plugged in"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98897#c25">Comment # 25</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Macbook pro 11,5 screen flicker when AC adapter plugged in"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98897">bug 98897</a>
from <span class="vcard"><a class="email" href="mailto:extr15@126.com" title="extr15 <extr15@126.com>"> <span class="fn">extr15</span></a>
</span></b>
<pre>(In reply to berg from <a href="show_bug.cgi?id=98897#c20">comment #20</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=128481" name="attach_128481" title="Setting correct core and memory clock for M370X in MBP 11,5">attachment 128481</a> <a href="attachment.cgi?id=128481&action=edit" title="Setting correct core and memory clock for M370X in MBP 11,5">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=98897&attachment=128481'>[review]</a> [review]
> Setting correct core and memory clock for M370X in MBP 11,5
>
> No screen flickering after testing out this patch I made on the v4.9 branch.
> I confirmed the GPU configuration on this page
> <a href="https://en.wikipedia.org/wiki/AMD_Radeon_Rx_300_series">https://en.wikipedia.org/wiki/AMD_Radeon_Rx_300_series</a>. Set mclk and sclk
> accordingly; assuming that mclk is for memory and sclk is for the GPU clock.
>
> Noticeably everything is running very nicely. No strange behaviour so far
> and both GPU and CPU temps are OK.
>
> In addition. My CPU turbo boost is also working, which it previously wasn't
> on 3.8.6. Test at your own risk.</span >
hi berg, thanks for your attachment.
I am new to linux kernel, and I don't how to apply your attachment, i.e. how to
compile a single radeon.ko ?
I find a radeon.ko under
"/lib/modules/4.8.0-36-generic/kernel/drivers/gpu/drm/radeon", so I want to
compile it, likes here:
<a href="https://bugzilla.kernel.org/show_bug.cgi?id=105051#c37">https://bugzilla.kernel.org/show_bug.cgi?id=105051#c37</a>
I modify si_dpm.c and write a Makefile:
obj-m += si_dpm.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
but when make I get:
/si_dpm.c:24:18: fatal error: drmP.h: No such file or directory
compilation terminated.
so could you tell me how to compile a single .ko or if any tutorial I can
follow, or I have to compile all the kernel?
thanks!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>