From: Sebastian Reichel Subject: Re: [PATCH 05/48] drm: omapdrm: dss: Set the DMA coherent mask Date: Sat, 14 Oct 2017 14:24:05 +0200 Message-ID: <20171014122405.qwqlklqe2bbf5pop@earth> References: <20171013145944.26557-1-laurent.pinchart@ideasonboard.com> <20171013145944.26557-6-laurent.pinchart@ideasonboard.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1067351287==" Return-path: Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by gabe.freedesktop.org (Postfix) with ESMTPS id EF82E6E0CA for ; Sat, 14 Oct 2017 12:24:09 +0000 (UTC) In-Reply-To: <20171013145944.26557-6-laurent.pinchart@ideasonboard.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Laurent Pinchart Cc: Tomi Valkeinen , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1067351287== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="43rzzjlumwxrxikr" Content-Disposition: inline --43rzzjlumwxrxikr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Oct 13, 2017 at 05:59:01PM +0300, Laurent Pinchart wrote: > When merging the omapdrm and omapdss drivers the omapdrm virtual > platform device will disappear, and the omapdss platform device will be > used for DMA memory allocation. To prepare for that, set the DMA > coherent mask for the device. >=20 > Signed-off-by: Laurent Pinchart Reviewed-by: Sebastian Reichel -- Sebastian > --- > drivers/gpu/drm/omapdrm/dss/dss.c | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/= dss/dss.c > index d1755f12236b..6ce26a4b93b3 100644 > --- a/drivers/gpu/drm/omapdrm/dss/dss.c > +++ b/drivers/gpu/drm/omapdrm/dss/dss.c > @@ -23,6 +23,7 @@ > #define DSS_SUBSYS_NAME "DSS" > =20 > #include > +#include > #include > #include > #include > @@ -1441,6 +1442,12 @@ static int dss_probe(struct platform_device *pdev) > =20 > dss.pdev =3D pdev; > =20 > + r =3D dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); > + if (r) { > + dev_err(&pdev->dev, "Failed to set the DMA mask\n"); > + return r; > + } > + > /* > * The various OMAP3-based SoCs can't be told apart using the compatible > * string, use SoC device matching. > --=20 > Regards, >=20 > Laurent Pinchart >=20 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel --43rzzjlumwxrxikr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlniAeQACgkQ2O7X88g7 +pqgXg/+IH1tqIsb8ECM8yVOhXFzWTU/mGFsDBDMf1+EjrW/p/yxsiKetQOaqfSZ WXSGYZBw2pLGjk6f3sJrgoUcSZs+HMkxpslcD2p7rzg5IxecnoBBxTrOLFhnJVJX gruV8MUY9sRBy8pGu2CNgmHKfrDA22QGh/J0+x/ZRveEbXiizPmdLH3T6hf6/Out Mzk5l58FkrLqIGVNKhZ4LqUbvNDEfnjvsXmXfMKZrBBYrvppGYZqNpzFPskIGtd1 WRnfVNu1e71vGC0xOt0ffBghnSm6kLglf50LwdIPGNbu4AIsDkrcdQcuhXbb9rNC cvJMsnp4a2qgmZGY3aTsmfwnIQjGBmKHXsRtykJ2nGnwDOA2Pg2pAIL1OucYiR6J C60KXPwnvARCJorUDZxOxVnAYzOouMGsXKuzqsqdZFvEH//iQS8OhMoeYpV+OU1c RfbW9dZHfV4HELhU3pBdpTbaubWfmpU5YXVbAInvOYIVtscN/j10JTDRNoOnPl3A liOIRmYbJ9mlDQeHwiyli7lhYdYd+vU//xTcUl7ClcIHFFxGiX/IqO8B18FnA0Ic YWUbqlWyHRTmMyNZ30fU0upY9UA1YaHXvtY9TCSs+/KvQPO5oa4DihpmNlPc1FMe CiESQkHHbMdUfUfUgN1/DD3+k7+tGFLIErYeM6UK/Akn1WBQdiU= =AFpf -----END PGP SIGNATURE----- --43rzzjlumwxrxikr-- --===============1067351287== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1067351287==--