From: Konstantin Belousov Subject: Re: [PATCH] drm/i915: fix user irq miss in BSD ring on g4x Date: Mon, 16 May 2011 13:27:27 +0300 Message-ID: <20110516102727.GI48734@deviant.kiev.zoral.com.ua> References: <1305532959-12395-1-git-send-email-boqun.feng@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0212353703==" Return-path: Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by gabe.freedesktop.org (Postfix) with ESMTP id 170D19E75B for ; Mon, 16 May 2011 03:44:06 -0700 (PDT) In-Reply-To: <1305532959-12395-1-git-send-email-boqun.feng@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: "Feng, Boqun" Cc: intel-gfx@lists.freedesktop.org, stable@kernel.org List-Id: intel-gfx@lists.freedesktop.org --===============0212353703== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GUipDDFi6+9KiMah" Content-Disposition: inline --GUipDDFi6+9KiMah Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 16, 2011 at 04:02:39PM +0800, Feng, Boqun wrote: > On g4x, user interrupt in BSD ring is missed. > This is because though g4x and ironlake share the same bsd_ring,=20 > their interrupt control interfaces have _two_ differences.=20 >=20 > 1.different irq enable/disable functions: > On g4x are i915_enable_irq and i915_disable_irq. > On ironlake are ironlake_enable_irq and ironlake_disable_irq. > 2.different irq flag:=20 > On g4x user interrupt flag in BSD ring on is I915_BSD_USER_INTERRUPT. > On ironlake is GT_BSD_USER_INTERRUPT >=20 > Old bsd_ring_get/put_irq call ring_get_irq and ring_get_irq. > ring_get_irq and ring_put_irq only call ironlake_enable/disable_irq. > So comes the irq miss on g4x.=20 >=20 > To fix this, as other rings' code do, conditionally call different=20 > functions(i915_enable/disable_irq and ironlake_enable/disable_irq) > and use different interrupt flags in bsd_ring_get/put_irq. >=20 > Signed-off-by: Feng, Boqun > Reviewed-by: Xiang, Haihao > Cc: stable@kernel.org It seems that the patch removes that last use for ring_get_irq() and ring_put_irq() ? Are the helpers still needed ? --GUipDDFi6+9KiMah Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk3Q/A8ACgkQC3+MBN1Mb4hfvgCfdgglgIG6vDF3zq41vMJgzbfS UtUAoOwYThxFBDYgSiVjuw1kzJKIhq8G =/8OU -----END PGP SIGNATURE----- --GUipDDFi6+9KiMah-- --===============0212353703== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0212353703==--