From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 98897] Macbook pro 11,5 screen flicker when AC adapter plugged in Date: Sun, 02 Apr 2017 13:07:39 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1781727451==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FDD06E219 for ; Sun, 2 Apr 2017 13:07:39 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1781727451== Content-Type: multipart/alternative; boundary="14911384591.1760D.30500"; charset="UTF-8" --14911384591.1760D.30500 Date: Sun, 2 Apr 2017 13:07:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D98897 --- Comment #25 from extr15 --- (In reply to berg from comment #20) > Created attachment 128481 [details] [review] > Setting correct core and memory clock for M370X in MBP 11,5 >=20 > No screen flickering after testing out this patch I made on the v4.9 bran= ch. > I confirmed the GPU configuration on this page > https://en.wikipedia.org/wiki/AMD_Radeon_Rx_300_series. Set mclk and sclk > accordingly; assuming that mclk is for memory and sclk is for the GPU clo= ck. >=20 > Noticeably everything is running very nicely. No strange behaviour so far > and both GPU and CPU temps are OK. >=20 > In addition. My CPU turbo boost is also working, which it previously wasn= 't > on 3.8.6. Test at your own risk. hi berg, thanks for your attachment. I am new to linux kernel, and I don't how to apply your attachment, i.e. ho= w 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:=20 https://bugzilla.kernel.org/show_bug.cgi?id=3D105051#c37 I modify si_dpm.c and write a Makefile: obj-m +=3D si_dpm.o all: make -C /lib/modules/$(shell uname -r)/build M=3D$(PWD) modules clean: make -C /lib/modules/$(shell uname -r)/build M=3D$(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! --=20 You are receiving this mail because: You are the assignee for the bug.= --14911384591.1760D.30500 Date: Sun, 2 Apr 2017 13:07:39 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 25 on bug 98897<= /a> from extr15
(In reply to berg from comment #20)
> Created attachment 128481 [details] [review] [re=
view]
> Setting correct core and memory clock for M370X in MBP 11,5
>=20
> No screen flickering after testing out this patch I made on the v4.9 b=
ranch.
> I confirmed the GPU configuration on this page
> htt=
ps://en.wikipedia.org/wiki/AMD_Radeon_Rx_300_series. Set mclk and sclk
> accordingly; assuming that mclk is for memory and sclk is for the GPU =
clock.
>=20
> Noticeably everything is running very nicely. No strange behaviour so =
far
> and both GPU and CPU temps are OK.
>=20
> In addition. My CPU turbo boost is also working, which it previously w=
asn't
> on 3.8.6. Test at your own risk.

hi berg, thanks for your attachment.
I am new to linux kernel, and I don't how to apply your attachment, i.e. ho=
w 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:=20
https:=
//bugzilla.kernel.org/show_bug.cgi?id=3D105051#c37

I modify si_dpm.c and write a Makefile:
obj-m +=3D si_dpm.o

all:
  make -C /lib/modules/$(shell uname -r)/build M=3D$(PWD) modules

clean:
  make -C /lib/modules/$(shell uname -r)/build M=3D$(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!


You are receiving this mail because:
  • You are the assignee for the bug.
= --14911384591.1760D.30500-- --===============1781727451== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1781727451==--