From: "Noralf Trønnes" <noralf@tronnes.org>
To: "Ong, Hean Loong" <hean.loong.ong@intel.com>,
"airlied@linux.ie" <airlied@linux.ie>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"See, Chin Liang" <chin.liang.see@intel.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"Vandervennet, Yves" <yves.vandervennet@intel.com>
Subject: Re: [PATCH10 3/3] ARM:drm ivip Intel FPGA Video and Image Processing Suite
Date: Thu, 16 Aug 2018 11:10:01 +0200 [thread overview]
Message-ID: <d25039b3-9b7f-e36d-5b87-970e11232530@tronnes.org> (raw)
In-Reply-To: <1534408434.3432.3.camel@intel.com>
Den 16.08.2018 10.33, skrev Ong, Hean Loong:
> On Wed, 2018-08-15 at 14:26 +0200, Noralf Trønnes wrote:
>> Den 14.08.2018 10.57, skrev Hean-Loong, Ong:
>>> From: Ong Hean Loong <hean.loong.ong@intel.com>
>>>
>>> Driver for Intel FPGA Video and Image Processing Suite Frame Buffer
>>> II.
>>> The driver only supports the Intel Arria10 devkit and its variants.
>>> This driver can be either loaded staticlly or in modules.
>>> The OF device tree binding is located at:
>>> Documentation/devicetree/bindings/display/altr,vip-fb2.txt
>>>
>>> Signed-off-by: Ong Hean Loong <hean.loong.ong@intel.com>
>>> ---
<snip>
>>> +int intelvipfb_probe(struct device *dev)
>>> +{
>>> + int retval;
>>> + struct drm_device *drm;
>>> + struct intelvipfb_priv *fbpriv = dev_get_drvdata(dev);
>>> + struct drm_connector *connector;
>>> + u32 formats[] = {DRM_FORMAT_XRGB8888};
>>> +
>>> + drm = fbpriv->drm;
>>> +
>>> + drm->dev_private = fbpriv;
>>> +
>>> + intelvipfb_setup_mode_config(drm);
>>> +
>>> + connector = intelvipfb_conn_setup(drm);
>>> + if (!connector) {
>>> + dev_err(drm->dev, "Connector setup failed\n");
>>> + goto err_mode_config;
>>> + }
>>> +
>>> + retval = drm_simple_display_pipe_init(drm, &fbpriv->pipe,
>>> + &fbpriv_funcs,
>>> formats,
>>> + ARRAY_SIZE(formats), NULL, connector);
>>> + if (retval < 0) {
>>> + dev_err(drm->dev, "Cannot setup simple display
>>> pipe\n");
>>> + goto err_mode_config;
>>> + }
>>> +
>>> + fbpriv->fbcma = drm_fbdev_cma_init(drm,
>>> + drm->mode_config.preferred_depth,
>>> + drm->mode_config.num_connector);
>> Please use drm_fbdev_generic_setup() for fbdev emulation. It tears
>> down
>> automatically on drm_dev_unregister() and you don't need the
>> drm_driver->lastclose hook.
>>
>> All drivers that use drm_fbdev_cma_init() will move to this shortly.
>>
>> Noralf.
>>
> I could not find any examples that currently uses
> the drm_fbdev_generic_setup (). Would you mind pointing me on where
> such examples are available that would allow me to replace the
> assignment of the fbcma pointer with drm_fbdev_generic_setup() method
This is the only one converted so far:
Commit: dff1c7032ffea20cca2ad3973ed4c69c8182683d
drm/tinydrm: Use drm_fbdev_generic_setup()
Noralf.
next prev parent reply other threads:[~2018-08-16 9:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-14 8:57 [PATCH10 0/3] " Hean-Loong, Ong
2018-08-14 8:57 ` [PATCH10 1/3] ARM:dt-bindings:display " Hean-Loong, Ong
2018-08-14 14:43 ` Rob Herring
2018-08-14 8:57 ` [PATCH10 2/3] ARM:socfpga-defconfig " Hean-Loong, Ong
2018-08-14 8:57 ` [PATCH10 3/3] ARM:drm ivip " Hean-Loong, Ong
2018-08-14 15:46 ` Dinh Nguyen
2018-08-15 1:44 ` Ong, Hean Loong
2018-08-15 12:26 ` Noralf Trønnes
2018-08-16 8:33 ` Ong, Hean Loong
2018-08-16 9:10 ` Noralf Trønnes [this message]
2018-08-14 15:48 ` [PATCH10 0/3] " Dinh Nguyen
2018-08-15 1:42 ` Ong, Hean Loong
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=d25039b3-9b7f-e36d-5b87-970e11232530@tronnes.org \
--to=noralf@tronnes.org \
--cc=airlied@linux.ie \
--cc=chin.liang.see@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hean.loong.ong@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yves.vandervennet@intel.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
Powered by JetHome