summaryrefslogtreecommitdiff
path: root/tests/i915/kms_cdclk.c
AgeCommit message (Collapse)Author
2022-06-10tests/i915/kms_cdclk: Add new subtestSwati Sharma
i915 driver continues to behave in such a way that CDCLK is never decreased, but always increased. This is done in order to avoid continuous CDCLK switching. So, in case if new CDCLK(after transition from low to high mode) is same as reference CDCLK i.e. reference = new because of above stated driver optimization; the current mode-transition test is passed else ref < new condition is checked (as we expect CDCLK will bump after mode transition from low to high mode). This is done in current mode-transition subtest where we are checking mode transition on each valid output. In this patch, a new subtest is added which lowers modes of all valid outputs simultaneously and then switches to highest mode to get proper DVFS behavior along with the above mentioned driver policy. In this case, we should expect CDCLK switch from low to high. Along with this, few cleanups have been done. v2: Fixed build error Cc: Uma Shankar<uma.shankar@intel.com> Cc: Mika Kahola <mika.kahola@intel.com> Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2021-09-16tests/kms: Move Intel specific kms tests to i915 directoryBhanuprakash Modem
As KMS tests on IGT are officially supported on multiple SoCs and there is an active development on it. So, KMS tests are meant to be generic and if we need to test few things specific to Intel, we can use igt_require_intel(). But if the whole test is Intel specific, then the best place for the test would be tests/i915. This patch will * Move all Intel specific kms tests to tests/i915 directory. * Update the tests those are generic but still open the driver as 'drm_open_driver_master(DRIVER_INTEL);'. V2: * Few more tests V3: * Remove cleanups (will submit separate patch later) * Move few more tests to i915 dir (Karthik) V4: * Move kms_big_joiner.c to i915 dir (Karthik) Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Mark Yacoub <markyacoub@chromium.org> Cc: Petri Latvala <petri.latvala@intel.com> Cc: Vidya Srinivas <vidya.srinivas@intel.com> Cc: Karthik B S <karthik.b.s@intel.com> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Mark Yacoub <markyacoub@chromium.org> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Reviewed-by: Karthik B S <karthik.b.s@intel.com>