dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Jocelyn Falempe <jfalempe@redhat.com>,
	dri-devel@lists.freedesktop.org, airlied@redhat.com,
	javierm@redhat.com, lyude@redhat.com
Subject: Re: [PATCH v2 4/4] drm/mgag200: Use DMA to copy the framebuffer to the VRAM
Date: Fri, 16 Jun 2023 10:08:15 +0200	[thread overview]
Message-ID: <98ebc72a-813a-aaf9-23db-f93b3986f21e@suse.de> (raw)
In-Reply-To: <15b08823-f2c2-5836-2421-f3bc25d51e11@redhat.com>


[-- Attachment #1.1: Type: text/plain, Size: 1587 bytes --]

Hi

Am 15.06.23 um 19:15 schrieb Jocelyn Falempe:
> On 15/06/2023 16:24, Thomas Zimmermann wrote:
>> Hi Jocelyn
>>
>> Am 31.05.23 um 11:21 schrieb Jocelyn Falempe:
>>> Even if the transfer is not faster, it brings significant
>>> improvement in latencies and CPU usage.
>>>
>>> CPU usage drops from 100% of one core to 3% when continuously
>>> refreshing the screen.
>>
>> I tried your patchset on a HP Proliant server with a G200EH. I can see 
>> that the CPU usage goes down, but the time until the screen update 
>> reaches the hardware's video memory has increased significantly.
> 
> Thanks for taking time to test it.
> Can you check if there is something in the dmesg ?
> 
> The 1s looks suspicious, if the IRQ is not working, there is a 1s 
> timeout, which can explain why it will display only one frame per 
> second. (logs should be filled with "DMA transfer timed out")

No, I don't see that error. I also verified that the IRQ handler is 
running. It runs on each update AFAICT.

When I'm doing full-screen scrolling on the kernel console I can see the 
scanlines being updated from top to bottom. This indicates to me that 
the actual copying takes time or interferes with the scanout.

Best regards
Thomas

> 
> I will see if I can get access to a G200EH, and if I can reproduce this.
> 
> Best regards,
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  reply	other threads:[~2023-06-16  8:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-31  9:21 [RFC PATCH v2 0/4] drm/mgag200: Use DMA to copy the framebuffer to the VRAM Jocelyn Falempe
2023-05-31  9:21 ` [PATCH v2 1/4] drm/mgag200: Rename constant MGAREG_Status to MGAREG_STATUS Jocelyn Falempe
2023-05-31  9:21 ` [PATCH v2 2/4] drm/mgag200: Simplify offset and scale computation Jocelyn Falempe
2023-05-31  9:21 ` [PATCH v2 3/4] drm/mgag200: Add IRQ support Jocelyn Falempe
2023-05-31  9:21 ` [PATCH v2 4/4] drm/mgag200: Use DMA to copy the framebuffer to the VRAM Jocelyn Falempe
2023-06-15 14:24   ` Thomas Zimmermann
2023-06-15 17:15     ` Jocelyn Falempe
2023-06-16  8:08       ` Thomas Zimmermann [this message]
2023-07-03 10:22         ` Jocelyn Falempe

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=98ebc72a-813a-aaf9-23db-f93b3986f21e@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=javierm@redhat.com \
    --cc=jfalempe@redhat.com \
    --cc=lyude@redhat.com \
    /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).