Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2005753ybn; Thu, 26 Sep 2019 05:42:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1C/lRBtrV7ZY6gvdnZCgTMZKwcItzQa7geBuQ6+P3Lmj8DA26eXIlgYq0w63mbA8Bjkvi X-Received: by 2002:a50:fc0c:: with SMTP id i12mr3392219edr.82.1569501727561; Thu, 26 Sep 2019 05:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569501727; cv=none; d=google.com; s=arc-20160816; b=UTb+UZR1CgpTr0GsIpd6oeS9ly1A7cP62V8CVhrPPqmBicmnoXshC0uh7pxUE6bXrs F2N3RYhDsZIhnltUWkVuRtBkP149lMnqCC3roesNeXWAygmBIPAiqXm7Cx8PKlpN3ETj +2pRu3DMEJFM/smIk/pAYNc/uqaxVLtQi8Rna5Xu/UPcoplD3EQ/g9tio1sfRwg+QlIw diLg02PbmSIVbe+6gntMtZEmTabasXYFW9uMtgrqm95h9bYNNEzX8BvqceQsvURJjMY/ wycDzxmDERAYXykr5eoftJsTG5pAYfzye8/RLhJHfUMQZgFIvifFL9PpRKmHktxTlMlJ c9Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=RyPMIXnhpVPvQzmpRiXTIndrEVTF4R8q1WUMEdJJK1Y=; b=SEqTCB8Bl5DpPHcJ9/24rBPja6ZeIQ3j+u342AMAzfn6BMWnLCUsSv9kT6MK5W4HEF K0Yb03tcv62R4IFllRKNt+pJxyLMKNactykpBQUW4S3+gp4YOB6VF0rAmdKRfsbaRk4/ F6XMNw49stAuOpsqNEQBbznhjJe9vIXMxOhatX0mpxYHf64gIXRc9rAN/k1gK/cjNyjx +s3mW22DlKuAiB27MeSMfk41U+A5P/Eyd8XsNbYCZt/82bRBbTXEp0d5/4UQ0Rl1Oihv Y3jA9ieY54SXE0QcLOUsTzvAGvhqy2zP29GZo50bWwT8Y+2H+I0+w3flCZBAbE2ckDnp VUng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si1194766edb.55.2019.09.26.05.41.44; Thu, 26 Sep 2019 05:42:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730012AbfIZJGf (ORCPT + 99 others); Thu, 26 Sep 2019 05:06:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:32988 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729018AbfIZJGe (ORCPT ); Thu, 26 Sep 2019 05:06:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2BE23AB7D; Thu, 26 Sep 2019 09:06:33 +0000 (UTC) Message-ID: Subject: Re: [RFC PATCH] xen/gntdev: Stop abusing DT of_dma_configure API From: Nicolas Saenz Julienne To: Rob Herring , Oleksandr Andrushchenko , Boris Ostrovsky Cc: linux-kernel@vger.kernel.org, Robin Murphy , Julien Grall , Juergen Gross , Stefano Stabellini , xen-devel@lists.xenproject.org Date: Thu, 26 Sep 2019 11:06:31 +0200 In-Reply-To: <20190925215006.12056-1-robh@kernel.org> References: <20190925215006.12056-1-robh@kernel.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-VZLu1lyfilRACxdtIeDn" User-Agent: Evolution 3.32.4 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-VZLu1lyfilRACxdtIeDn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-09-25 at 16:50 -0500, Rob Herring wrote: > As the comment says, this isn't a DT based device. of_dma_configure() > is going to stop allowing a NULL DT node, so this needs to be fixed. >=20 > Not sure exactly what setup besides arch_setup_dma_ops is needed... >=20 > Cc: Robin Murphy > Cc: Julien Grall > Cc: Nicolas Saenz Julienne > Cc: Oleksandr Andrushchenko > Cc: Boris Ostrovsky > Cc: Juergen Gross > Cc: Stefano Stabellini > Cc: xen-devel@lists.xenproject.org > Signed-off-by: Rob Herring Just so it isn't forgotten, the same applies here: diff --git a/drivers/gpu/drm/xen/xen_drm_front.c b/drivers/gpu/drm/xen/xen_drm_front.c index ba1828acd8c9..de316a891f39 100644 --- a/drivers/gpu/drm/xen/xen_drm_front.c +++ b/drivers/gpu/drm/xen/xen_drm_front.c @@ -11,7 +11,6 @@ #include #include #include -#include =20 #include #include @@ -718,19 +717,7 @@ static int xen_drv_probe(struct xenbus_device *xb_dev, struct device *dev =3D &xb_dev->dev; int ret; =20 - /* - * The device is not spawn from a device tree, so arch_setup_dma_op= s - * is not called, thus leaving the device with dummy DMA ops. - * This makes the device return error on PRIME buffer import, which - * is not correct: to fix this call of_dma_configure() with a NULL - * node to set default DMA ops. - */ dev->coherent_dma_mask =3D DMA_BIT_MASK(32); - ret =3D of_dma_configure(dev, NULL, true); - if (ret < 0) { - DRM_ERROR("Cannot setup DMA ops, ret %d", ret); - return ret; - } =20 front_info =3D devm_kzalloc(&xb_dev->dev, sizeof(*front_info), GFP_KERNEL); --=-VZLu1lyfilRACxdtIeDn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl2Mf5cACgkQlfZmHno8 x/4SfAf+NsGqU0loPiWDCjo41LSGYYLj1TAtCnYEFJhWysp82mV30XSwqhdPMdEd ydFDB1TmNDhAazi+do8Sh47UzN+UQ2e4U3a5zZ949lNlPNG5bOueY+SQ+S39PFfy G+NP0lHrXfisWnLmslIn9y6Eqi5Ik4Bjb2DqNZLiAoyzYDlwvDMoAI66J54GT84H c7TGaeDzTpP4mHxW1BbJxk66gtEIvvURo62SOZuaohC4SICm6f26g+iz6CG8Bjdw +jRf9eff00d4MOwD28lJPMrHcDS80W1nZHcdTEijMB3bK0QWBkSr1g9Mki2jzukA 5DGyncDkT9wSqIzxCXx77+RPs3rLuA== =7yuB -----END PGP SIGNATURE----- --=-VZLu1lyfilRACxdtIeDn--