From: Chris Wilson Subject: Re: [Intel-gfx] [PATCH] drm/i915: Allow user modes to exceed DVI 165MHz limit Date: Thu, 27 Mar 2014 09:37:36 +0000 Message-ID: <20140327093736.GA30820@nuc-i3427.alporthouse.com> References: <1395911325-4981-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1395911325-4981-1-git-send-email-ville.syrjala@linux.intel.com> Sender: stable-owner@vger.kernel.org To: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org, stable@vger.kernel.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Mar 27, 2014 at 11:08:45AM +0200, ville.syrjala@linux.intel.com wrote: > So relax the checks a bit, and apply the single-link DVI dotclock limit > only when filtering the mode list, and ignore the limit when setting > a user specified mode. Mind enlightening me as to how this actually works? I thought all display modes were validated before we used them, so how come this sneaks through? So it goes like this: userspace calls GETCONNECTOR kernel: fill_modes -> drm_helper_probe_single_connector_modes -> mode_valid? but userspace calls SETCRTC with a random mode kernel: applies random mode without validation Seriously we don't do any checking that the mode given to SETCRTC is applicable and not in any way harmful before setting registers? -Chris -- Chris Wilson, Intel Open Source Technology Centre