All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Jocelyn Falempe <jfalempe@redhat.com>,
	airlied@redhat.com, kuohsiang_chou@aspeedtech.com,
	jammy_huang@aspeedtech.com, jani.nikula@linux.intel.com,
	dianders@chromium.org
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v4 2/2] drm/ast: report connection status on Display Port.
Date: Wed, 12 Jul 2023 16:51:30 +0200	[thread overview]
Message-ID: <b3357699-174a-394d-0595-a636cca75057@suse.de> (raw)
In-Reply-To: <af5ab6ed-2f8f-f02e-bc5d-9d13d9e8c87a@redhat.com>


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

Hi

Am 12.07.23 um 16:39 schrieb Jocelyn Falempe:
> On 12/07/2023 15:55, Thomas Zimmermann wrote:
>> Hi
>>
>> Am 12.07.23 um 15:27 schrieb Jocelyn Falempe:
>>> Aspeed always report the display port as "connected", because it
>>> doesn't set a .detect callback.
>>> Fix this by providing the proper detect callback for astdp and dp501.
>>>
>>> This also fixes the following regression:
>>> Since commit fae7d186403e ("drm/probe-helper: Default to 640x480 if no
>>> EDID on DP")
>>> The default resolution is now 640x480 when no monitor is connected. But
>>> Aspeed graphics is mostly used in servers, where no monitor is attached.
>>> This also affects the remote BMC resolution to 640x480, which is
>>> inconvenient, and breaks the anaconda installer.
>>
>> The formatting of these paragraphs still looks off.
> 
> ok, I think it's because I start a new line in the middle of the 
> sentence, before "The default resolution ..." ?
> I will fix that.
>>
>> It just occured to me that you probably want output polling to make 
>> detection work dynamically. See an old patch of mine on how that works:
>>
>> https://patchwork.freedesktop.org/patch/488460/
> 
> So, if I understand well, I just need to add:
> 
> connector->polled = DRM_CONNECTOR_POLL_CONNECT | 
> DRM_CONNECTOR_POLL_DISCONNECT;
> 
> and call drm_kms_helper_poll_init() ?

That's it, I think. The flags tell what to poll for and the call starts 
the polling timeout. It worked when I tested it with vga back then.

Best regards
Thomas

>>
>> We also get an interrupt when the connector state changes, but IDK how 
>> that has to be handled. So polling is the next best thing. Sorry for 
>> missing this in the earlier reviews.
> 
> Yes, there is no irq configured in the ast driver, so let's fallback to 
> polling.
> 

-- 
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-07-12 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-12 13:27 [PATCH v4 1/2] drm/ast: Add BMC virtual connector Jocelyn Falempe
2023-07-12 13:27 ` [PATCH v4 2/2] drm/ast: report connection status on Display Port Jocelyn Falempe
2023-07-12 13:55   ` Thomas Zimmermann
2023-07-12 14:39     ` Jocelyn Falempe
2023-07-12 14:51       ` Thomas Zimmermann [this message]
2023-07-12 13:59 ` [PATCH v4 1/2] drm/ast: Add BMC virtual connector Thomas Zimmermann

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=b3357699-174a-394d-0595-a636cca75057@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@redhat.com \
    --cc=dianders@chromium.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jammy_huang@aspeedtech.com \
    --cc=jani.nikula@linux.intel.com \
    --cc=jfalempe@redhat.com \
    --cc=kuohsiang_chou@aspeedtech.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.