Re: [Intel-gfx] DRM Inquiry

2018-06-13 Thread John Sledge
Hi Jani, The end goal was already achieve by the advice you gave the DRM_DP_AUX_CHARDEV.I just like to extend my knowledge into DRM such as a scenario having a kernel version that doesn't have the DRM_DP_AUX_CHARDEV yet. Would it possible to implement specific DRM_DP_AUX_CHARDEV to it.

Re: [Intel-gfx] DRM Inquiry

2018-06-13 Thread Jani Nikula
On Wed, 13 Jun 2018, John Sledge wrote: > I like to understand how the DRM_DP_AUX_CHARDEV=y kick off. Try 'git grep DRM_DP_AUX_CHARDEV' in your kernel git repo, and see how it affects conditional compilation. This list isn't kernel development 101. You still didn't say what your end goal is.

Re: [Intel-gfx] DRM Inquiry

2018-06-12 Thread John Sledge
Hi Jani, I like to understand how the DRM_DP_AUX_CHARDEV=y kick off. Regards,John On Monday, June 11, 2018, 7:36:51 PM GMT+8, Jani Nikula wrote: 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

Re: [Intel-gfx] DRM Inquiry

2018-06-11 Thread Jani Nikula
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

Re: [Intel-gfx] DRM Inquiry

2018-06-11 Thread John Sledge
Hi Jani, 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

Re: [Intel-gfx] DRM Inquiry

2018-05-25 Thread Jani Nikula
On Fri, 25 May 2018, "Taylor, Clinton A" wrote: > Looks like the seek=%d in the sprintf is not working. Yeah. Try skip=%d instead. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list

Re: [Intel-gfx] DRM Inquiry

2018-05-25 Thread Taylor, Clinton A
oun...@lists.freedesktop.org> On Behalf Of John Sledge Sent: Friday, May 25, 2018 1:11 AM To: dri-de...@lists.freedesktop.org; Jani Nikula <jani.nik...@linux.intel.com> Cc: intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] DRM Inquiry Hi Jani, I seek 0-800 and here's what I get, all 11 0A in h

Re: [Intel-gfx] DRM Inquiry

2018-05-25 Thread Jani Nikula
On Fri, 25 May 2018, John Sledge wrote: > Hi Jani, > I seek 0-800 and here's what I get, all 11 0A in hex. Not sure if this is the > brightness value of the display. I also did a test, when I disconnect the DP > to the display and execute the dd commands, it would say

Re: [Intel-gfx] DRM Inquiry

2018-05-25 Thread John Sledge
Hi Jani, I seek 0-800 and here's what I get, all 11 0A in hex. Not sure if this is the brightness value of the display. I also did a test, when I disconnect the DP to the display and execute the dd commands, it would say error reading 'dev/drm_dp_aux1': Connection timed out. So I think my

Re: [Intel-gfx] DRM Inquiry

2018-05-25 Thread Jani Nikula
On Fri, 25 May 2018, John Sledge wrote: > Hi Jani, > I can now see /dev/drm_dp_aux*. > I'm not familiar with dd command.Correct me if I'm wrong. > Possible commands i tried and nothing happen:dd if=/dev/drm_dp_aux1 seek=723 > ibs=2dd of=/dev/drm_dp_aux1 seek=723 ibs=2 >

Re: [Intel-gfx] DRM Inquiry

2018-05-25 Thread John Sledge
Hi Jani, I can now see /dev/drm_dp_aux*. I'm not familiar with dd command.Correct me if I'm wrong. Possible commands i tried and nothing happen:dd if=/dev/drm_dp_aux1 seek=723 ibs=2dd of=/dev/drm_dp_aux1 seek=723 ibs=2 dd if=/dev/drm_dp_aux2 seek=723 ibs=2dd of=/dev/drm_dp_aux2 seek=723 ibs=2 I

Re: [Intel-gfx] DRM Inquiry

2018-05-24 Thread Jani Nikula
On Thu, 24 May 2018, John Sledge wrote: > I was able to update my kernel to 4.6 which has the DRM_DP_AUX_CHARDEV > in the Kconfig file linux-4.6\drivers\gpu\drm. Though I also > add DRM_DP_AUX_CHARDEV=y in  kernel config. When invoke uname -r, I > could see that the kernel

Re: [Intel-gfx] DRM Inquiry

2018-05-24 Thread John Sledge
Hi Jani, I was able to update my kernel to 4.6 which has the DRM_DP_AUX_CHARDEV in the  Kconfig file linux-4.6\drivers\gpu\drm. Though I also add DRM_DP_AUX_CHARDEV=y in  kernel config. When invoke uname -r, I could see that the kernel is now 4.6. How can I verify the DRM_DP_AUX_CHARDEV takes

Re: [Intel-gfx] DRM Inquiry

2018-05-23 Thread John Sledge
Hi Jani, Good day! Thank you for taking the time to point out those information. It’s a great help to me. Also apologies for the late reply, your first reply went to my spam inbox, not sure what happen and I was waiting for replies for days. I'm still new to Linux and to DRM. I also need to

Re: [Intel-gfx] DRM Inquiry

2018-05-18 Thread Jani Nikula
On Thu, 17 May 2018, John Sledge wrote: > I’ve been doing some PTN3460 programming under Linux using C/C++ and I > have some questions regarding on setting the brightness level to my > display device. > > The display device with PTN3460 is connected in DP (display port) to