igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Martin Peres <martin.peres@linux.intel.com>
To: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>,
	igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH] docs/chamelium: Update sections of a network and a config file in detail
Date: Tue, 24 Jul 2018 15:20:24 +0300	[thread overview]
Message-ID: <edca3af9-0681-a310-ab3e-c1dd97cf6603@linux.intel.com> (raw)
In-Reply-To: <20180720170411.20835-1-gwan-gyeong.mun@intel.com>



On 20/07/18 20:04, Gwan-gyeong Mun wrote:
> It updates a network setting between a Target PC and a Chamelium.
> And it adds informations of Chamelium-specific keys for DRM connector and
> Chamelium Port ID in detail.
> And it adds "Running the Chamelium With IGT" section.
> 
> Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
> ---
>  docs/chamelium.txt | 45 +++++++++++++++++++++++++++++++++++++++------
>  1 file changed, 39 insertions(+), 6 deletions(-)
> 
> diff --git a/docs/chamelium.txt b/docs/chamelium.txt
> index ed154990..13584a41 100644
> --- a/docs/chamelium.txt
> +++ b/docs/chamelium.txt
> @@ -44,6 +44,9 @@ It may be necessary to give the Chamelium a static IP address, depending on
>  the network setup. This can be configured (via the serial console) by editing
>  the Debian-styled /etc/network/interfaces configuration file.
>  
> +This document supposes that target PC's network IP has "192.168.1.1/24" and
> +the Chamelium's network IP has "192.168.1.2/24".
> +
>  Chamelium support requires setting up dedicated IGT configuration, as explained
>  in the Core and Chamelium parts of the IGT API Reference in the documentation.
>  
> @@ -60,14 +63,42 @@ by the IGT tests is common to all connectors and thus one machine running a test
>  on a given connector may reset the Chamelium while another machine is running
>  a test on another connector.
>  
> -An example fully-featured configuration follows:
> +IGT's behavior can be configured through a configuration file.
> +By default, this file is expected to exist in ~/.igtrc
> +In order to run tests using the Chamelium, a valid configuration file must be
> +present. It must contain Chamelium-specific keys as shown with the following
> +example:
> +
> +# The common configuration section follows.
>  [Common]
> -FrameDumpPath=/root/
> +# The path to dump frames that fail comparison checks
> +FrameDumpPath=/tmp/

This is a security issue if the names are guessable in advance and IGT
is not using mktemp. Also, we do not want reboots to delete these
frames, so I suggest keeping /root as the default target.

>  
> -[Chamelium]
> -URL=http://192.168.72.1:9992
> +# The following section is used for configuring the Device Under Test.
> +# It is not mandatory and allows overriding default values.
> +[DUT]
> +SuspendResumeDelay=15
>  
> +[Chamelium]
> +# The URL used for connecting to the Chamelium's RPC server
> +URL=http://192.168.1.2:9992
> +
> +# The rest of the sections are used for defining connector mappings.
> +# This is required so any tests using the Chamelium know which connector
> +# on the test machine should be connected to each Chamelium port.
> +#
> +# In the event that any of these mappings are specified incorrectly,
> +# any hotplugging tests for the incorrect connector mapping will fail.
> +
> +# The name of the DRM connector
> +# The DP-1 of [Chamelium:DP-1] and the HDMI-A-1 of [Chamelium:HDMI-A-1] indicate
> +# "connector info type" of /sys/kernel/debug/dri/0/i915_display_info.
>  [Chamelium:DP-1]
> +# The ChameliumPortID indicates physical port (device) id of a Chamelium Board.
> +# A Chamelium daemon program defines these port ids as
> +# DP1 = 1, DP2 = 2, HDMI = 3, and VGA = 4

You forgot to specify which port is DP1 and which one is DP2. How about:

DP1 (located next to the HDMI port) = 1
DP2 (located next to the VGA connector) = 2

> +# The port ids are defined at:
> +# https://chromium.googlesource.com/chromiumos/platform/chameleon/+/master/chameleond/utils/ids.py
>  ChameliumPortID=1
>  
>  [Chamelium:HDMI-A-2]
> @@ -76,8 +107,10 @@ ChameliumPortID=3
>  [Chamelium:VGA-1]
>  ChameliumPortID=4
>  
> -[DUT]
> -SuspendResumeDelay=2
> +Running the Chamelium With IGT
> +------------------------------
> +
> +$ ./scripts/run-tests.sh -t chamelium
>  
>  Debugging the Chamelium
>  -----------------------
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2018-07-24 12:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-20 17:04 [igt-dev] [PATCH] docs/chamelium: Update sections of a network and a config file in detail Gwan-gyeong Mun
2018-07-20 20:46 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-07-24 12:20 ` Martin Peres [this message]
2018-07-24 12:44 ` [igt-dev] [PATCH] " Gwan-gyeong Mun
2018-07-24 12:48   ` Martin Peres
2018-07-24 12:55 ` [igt-dev] [i-g-t, v2] " Gwan-gyeong Mun
2018-07-24 14:32 ` [igt-dev] ✓ Fi.CI.BAT: success for docs/chamelium: Update sections of a network and a config file in detail (rev3) Patchwork
2018-07-24 16:57 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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=edca3af9-0681-a310-ab3e-c1dd97cf6603@linux.intel.com \
    --to=martin.peres@linux.intel.com \
    --cc=gwan-gyeong.mun@intel.com \
    --cc=igt-dev@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;
as well as URLs for NNTP newsgroup(s).