From: Mathieu Larouche <mathieu.larouche@matrox.com>
To: Christopher Harvey <charvey@matrox.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm/mgag200: Index 24 in extended CRTC registers is 24 in hex, not decimal.
Date: Fri, 05 Apr 2013 12:38:13 -0400 [thread overview]
Message-ID: <515EFDF5.8070707@matrox.com> (raw)
In-Reply-To: <dc18aad85da920cae2812f895308a8bc9a9a55aa.1365179209.git.charvey@matrox.com>
On 05/04/2013 10:51 AM, Christopher Harvey wrote:
> This change properly enables the "requester" in G200ER cards that is
> responsible for getting pixels out of memory and clocking them out to
> the screen.
>
> Signed-off-by: Christopher Harvey <charvey@matrox.com>
Signed-off-by: Mathieu Larouche <mathieu.larouche@matrox.com>
> ---
> drivers/gpu/drm/mgag200/mgag200_mode.c | 13 +++----------
> 1 file changed, 3 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c
> index 7337013..f988965 100644
> --- a/drivers/gpu/drm/mgag200/mgag200_mode.c
> +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c
> @@ -751,8 +751,6 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
> int i;
> unsigned char misc = 0;
> unsigned char ext_vga[6];
> - unsigned char ext_vga_index24;
> - unsigned char dac_index90 = 0;
> u8 bppshift;
>
> static unsigned char dacvalue[] = {
> @@ -803,7 +801,6 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
> option2 = 0x0000b000;
> break;
> case G200_ER:
> - dac_index90 = 0;
> break;
> }
>
> @@ -852,10 +849,8 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
> WREG_DAC(i, dacvalue[i]);
> }
>
> - if (mdev->type == G200_ER) {
> - WREG_DAC(0x90, dac_index90);
> - }
> -
> + if (mdev->type == G200_ER)
> + WREG_DAC(0x90, 0);
>
> if (option)
> pci_write_config_dword(dev->pdev, PCI_MGA_OPTION, option);
> @@ -952,8 +947,6 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
> if (mdev->type == G200_WB)
> ext_vga[1] |= 0x88;
>
> - ext_vga_index24 = 0x05;
> -
> /* Set pixel clocks */
> misc = 0x2d;
> WREG8(MGA_MISC_OUT, misc);
> @@ -965,7 +958,7 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
> }
>
> if (mdev->type == G200_ER)
> - WREG_ECRT(24, ext_vga_index24);
> + WREG_ECRT(0x24, 0x5);
>
> if (mdev->type == G200_EV) {
> WREG_ECRT(6, 0);
--
Mathieu Larouche Ing./Eng.
Software Designer
Matrox Graphics Inc.
Phone : 514 822-6000 x7905
Email : mathieu.larouche@matrox.com
next prev parent reply other threads:[~2013-04-05 16:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-05 16:26 [PATCH 0/3] mgag200: bug fix, cleanup and managed devices Christopher Harvey
2013-04-05 14:51 ` [PATCH 1/3] drm/mgag200: Index 24 in extended CRTC registers is 24 in hex, not decimal Christopher Harvey
2013-04-05 16:38 ` Mathieu Larouche [this message]
2013-04-05 15:28 ` [PATCH 2/3] drm: Misc comment cleanup Christopher Harvey
2013-04-05 16:15 ` [PATCH 3/3] drm/mgag200: Convert to managed device resources where possible Christopher Harvey
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=515EFDF5.8070707@matrox.com \
--to=mathieu.larouche@matrox.com \
--cc=charvey@matrox.com \
--cc=dri-devel@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