From: John Sledge Subject: Re: RE: [Intel-gfx] DRM Inquiry Date: Wed, 13 Jun 2018 02:07:04 +0000 (UTC) Message-ID: <1298594041.4470364.1528855624318@mail.yahoo.com> References: <471791572.2287221.1526561265798.ref@mail.yahoo.com> <471791572.2287221.1526561265798@mail.yahoo.com> <87fu2pxph0.fsf@intel.com> <910225270.614010.1527135594944@mail.yahoo.com> <524712366.665006.1527159421984@mail.yahoo.com> <87r2m1jo0g.fsf@intel.com> <1379753500.1074727.1527230209001@mail.yahoo.com> <87603c441x.fsf@intel.com> <1337918406.1091217.1527235879310@mail.yahoo.com> <07B20DB26D79E148B5B4241D21181A4CBE9A5411@ORSMSX115.amr.corp.intel.com> <87a7sn3bex.fsf@intel.com> <347606627.3373105.1528712212657@mail.yahoo.com> <87efhd4ks9.fsf@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0574937995==" Return-path: In-Reply-To: <87efhd4ks9.fsf@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: "Taylor, Clinton A" , "dri-devel@lists.freedesktop.org" , Jani Nikula Cc: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org --===============0574937995== Content-Type: multipart/alternative; boundary="----=_Part_4470363_882072139.1528855624316" ------=_Part_4470363_882072139.1528855624316 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jani, I like to understand how the DRM_DP_AUX_CHARDEV=3Dy kick off. Regards,John On Monday, June 11, 2018, 7:36:51 PM GMT+8, Jani Nikula wrote: =20 =20 On Mon, 11 Jun 2018, John Sledge wrote: > Thanks for the help. I was able to manage your advice on the > drm_dp_aux_chardev. Though I still need to learn more about the DRM vs > kernel process flow. Like for example, upon changing/adding > DRM_DP_AUX_CHARDEV in kernel .config, How did DRM_DP_AUX_CHARDEV was > being invoke here? From the code, I notice character device will be > created under drm_dp_aux_register_devnode method. > For example I made two kernel 4.6 with DRM_DP_AUX_CHARDEV=3Dy and > another kernel 4.6 with DRM_DP_AUX_CHARDEV=3Dn.=C2=A0 > So the steps was to build and install the kernel with > DRM_DP_AUX_CHARDEV=3Dy. Once finish, I tried to reboot and verified the > /dev/drm_dp_aux_chardev* and it was there. > Now, I will change the .config DRM_DP_AUXCHARDEV=3Dn then follow the > steps below to manual build the DRM module. I'm not really sure if I'm > correct on this one. Why are you disabling it again? Just enable the config, use the resulting kernel, and do the rest in userspace. > 1. rm /dev/drm_dp_aux_chardev*=C2=A02. make modules_prepare3. make > SUBDIRS=3Dscripts/mod4. make SUBDIRS=3Ddrivers/gpu/drm modules5. cp > drivers/gpu/drm/i915/i915.ko > /lib/modules/4.6.0-94.11-default/kernel/drivers/gpu/drm6. ... I copy > all .ko under drm to the lib/modules/4.67. depmod8. modprobe > i9159. ... I also modprobe all modules10. reboot > The result was=C2=A0/dev/drm_dp_aux_chardev* was still there. My > expectation was it would disrepair or remove. Don't do this. I don't understand what you're trying to do. > Please have comments and advice. Please explain what you're trying to do to begin with. What's your end goal? BR, Jani. PS. Please prefer plain text instead of html on the list. --=20 Jani Nikula, Intel Open Source Graphics Center _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel =20 ------=_Part_4470363_882072139.1528855624316 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Jani,

I like to understand how the= DRM_DP_AUX_CHARDEV=3Dy kick off.

Regards,
John



=20
=20
On Monday, June 11, 2018, 7:36:51 PM GMT+8, Jani Nikula= <jani.nikula@linux.intel.com> wrote:


On Mon, 11 Jun 2018, John Sledge <= john_sledget@yahoo.com> wrote:
> Thanks for the help. I was able to manage your advice on the
> drm_dp_aux_chardev. Though I still need to learn more ab= out the DRM vs
> kernel process flow. Like for example= , upon changing/adding
> DRM_DP_AUX_CHARDEV in kernel = .config, How did DRM_DP_AUX_CHARDEV was
> being invoke= here? From the code, I notice character device will be
&= gt; created under drm_dp_aux_register_devnode method.
>= ; For example I made two kernel 4.6 with DRM_DP_AUX_CHARDEV=3Dy and
> another kernel 4.6 with DRM_DP_AUX_CHARDEV=3Dn. 
> So the steps was to build and install the kernel with
> DRM_DP_AUX_CHARDEV=3Dy. Once finish, I tried to reboot = and verified the
> /dev/drm_dp_aux_chardev* and it was= there.
> Now, I will change the .config DRM_DP_AUXCHA= RDEV=3Dn then follow the
> steps below to manual build= the DRM module. I'm not really sure if I'm
> correct = on this one.

Why are you disabling it = again? Just enable the config, use the
resulting kernel, = and do the rest in userspace.

> 1. = rm /dev/drm_dp_aux_chardev* 2. make modules_prepare3. make
> SUBDIRS=3Dscripts/mod4. make SUBDIRS=3Ddrivers/gpu/drm modules5= . cp
> drivers/gpu/drm/i915/i915.ko
= > /lib/modules/4.6.0-94.11-default/kernel/drivers/gpu/drm6. ... I copy> all .ko under drm to the lib/modules/4.67. depmod8. m= odprobe
> i9159. ... I also modprobe all modules10. re= boot
> The result was /dev/drm_dp_aux_chardev* wa= s still there. My
> expectation was it would disrepair= or remove.

Don't do this. I don't und= erstand what you're trying to do.

>= Please have comments and advice.

Plea= se explain what you're trying to do to begin with. What's your end
goal?

BR,
= Jani.


PS. Please pr= efer plain text instead of html on the list.



--=
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel=
------=_Part_4470363_882072139.1528855624316-- --===============0574937995== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0574937995==--