From: Jani Nikula <jani.nikula@intel.com>
To: Dave Airlie <airlied@gmail.com>
Cc: "intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH 2/3] drm/i915/dp: use drm_edid_duplicate
Date: Tue, 01 Oct 2013 10:37:08 +0300 [thread overview]
Message-ID: <87bo394f2z.fsf@intel.com> (raw)
In-Reply-To: <CAPM=9tyx9o08kfnWO183cAPFxQzyDkiiiBgFaAwf2ZZN_U79_A@mail.gmail.com>
On Tue, 01 Oct 2013, Dave Airlie <airlied@gmail.com> wrote:
> Did you compile or boot this? I get a warning since you are using edid
> uninitialised, I guess you meant to duplicate intel_connector->edid.
Hi Dave, quite embarrassing, I thought I did, obviously didn't. Updated
patch follows.
BR,
Jani.
>
> Dave.
>
>> drivers/gpu/drm/i915/intel_dp.c | 8 +-------
>> 1 file changed, 1 insertion(+), 7 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
>> index 95a3159..aed9d67 100644
>> --- a/drivers/gpu/drm/i915/intel_dp.c
>> +++ b/drivers/gpu/drm/i915/intel_dp.c
>> @@ -2920,18 +2920,12 @@ intel_dp_get_edid(struct drm_connector *connector, struct i2c_adapter *adapter)
>> /* use cached edid if we have one */
>> if (intel_connector->edid) {
>> struct edid *edid;
>> - int size;
>>
>> /* invalid edid */
>> if (IS_ERR(intel_connector->edid))
>> return NULL;
>>
>> - size = (intel_connector->edid->extensions + 1) * EDID_LENGTH;
>> - edid = kmemdup(intel_connector->edid, size, GFP_KERNEL);
>> - if (!edid)
>> - return NULL;
>> -
>> - return edid;
>> + return drm_edid_duplicate(edid);
>> }
>>
>> return drm_get_edid(connector, adapter);
>> --
>> 1.7.9.5
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
next prev parent reply other threads:[~2013-10-01 7:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-27 12:08 [PATCH 1/3] drm/edid: add drm_edid_duplicate Jani Nikula
2013-09-27 12:08 ` [PATCH 2/3] drm/i915/dp: use drm_edid_duplicate Jani Nikula
2013-10-01 0:33 ` Dave Airlie
2013-10-01 7:37 ` Jani Nikula [this message]
2013-10-01 7:38 ` [PATCH] " Jani Nikula
2013-10-09 5:30 ` Dave Airlie
2013-09-27 12:08 ` [PATCH 3/3] drm/exynos: " Jani Nikula
2013-09-27 12:24 ` [PATCH 1/3] drm/edid: add drm_edid_duplicate Chris Wilson
2013-09-27 12:42 ` Damien Lespiau
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=87bo394f2z.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@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 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.