Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp318184ybi; Tue, 2 Jul 2019 21:09:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3+fh4GQr7B9odioSKS1W63JN+R63bEbkosQ0g/d6NOy1P8Mt1i0u3ZKfMZ8Q7q0Q9LDQl X-Received: by 2002:a63:205f:: with SMTP id r31mr26080205pgm.159.1562126962510; Tue, 02 Jul 2019 21:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562126962; cv=none; d=google.com; s=arc-20160816; b=Fxmb09agBpnivyO04CMDSU/U1RnQWCt1yRsfQdi3Jll78aVj6/N1aCR0teqKvtLZ5Y kFrKCpLh2hjGEfRGGREJCetDexE73y6GCwVPk6HOvQW8uWjBboxc11Zfqli6mknDT0Yf c8wPwf4owKMtNnahNw5HwYBlsxxyRjjtvhorWp3Ff9mVjDSyoyBhjOKAkoB0xhH7BBgz k2AWo8zfC2K+1c1rs8LOGMYDn5SRQp8a0ZaTU7Ye6MVcjZl/qPz4gI2q18yChiOCkjHO /mEeLwMAmkbTQrzhQ6Y7qR0RhlGQjqzDhvElnl9/mmjL47W5XaZKhRXBrBr9Jz18IiY6 aweg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BOHEn0gshPaD156fAbU+LPgYeovu+KLC6H+rqvqrtq4=; b=q1ICbRqRctxbg7aO+Rg1hiBl5tZ/ux2wBJmYNPEQxzfV2LxouUswjKAcuc+9+Ka9pW mPjBd0G01pEQ2eT/qKbXZW9k3vU1o37y65s+TVO+1l/59DWA7c/RfgnyYXfLs9S+f0EF kMU5pKKmJYjWRa5SGq70uTAAbodSAXpDi3JkSTRBR5MZIcI1pJnEceg+inb1NoXK1dck 72mdsJuGi2K0eTZSrTAyKeQOI+t7rGx0I2pfIJbMq07F1R3uwA6h7I3PaVReoUi9/z9p oQUKAwddtbjTImD+yK4Dkb8OPz2dmDbcOrt8t05ghHrwmpNtuAfv9cgPwF4w4GxdO1cf W8xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=thNW3ICb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1si951975plg.398.2019.07.02.21.09.06; Tue, 02 Jul 2019 21:09:22 -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; dkim=pass header.i=@linaro.org header.s=google header.b=thNW3ICb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725817AbfGCEIr (ORCPT + 99 others); Wed, 3 Jul 2019 00:08:47 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44073 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbfGCEIr (ORCPT ); Wed, 3 Jul 2019 00:08:47 -0400 Received: by mail-pg1-f193.google.com with SMTP id i18so468791pgl.11 for ; Tue, 02 Jul 2019 21:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BOHEn0gshPaD156fAbU+LPgYeovu+KLC6H+rqvqrtq4=; b=thNW3ICbdgjo5v4OnrHC8HngYpGdmRrbNHaD/DbS92CXxHGPR59WaqhuwSzFyBYThW eeip6X5FJ/8DmwPxp53o5qXeCuYst0A/0fKVm9p/ZJJgreL8Mnl7RsLZssD700+4Lgnx BFm4LqDqLsjM7uO/1d7j0A/0n4CcW2Uy8o1oVQgj8vwuTyZDvN/IuUWC2a90f4NZkUIX 5gV5QvPA6NVOeNYPJ107ElYM3bm60jG6d9vecux/YZBBMJeS9ixnOJ6J/qa4DnT9MOgK lWlLiZfrNmxIZZb/zvT7kyuNBfFtZqeFaXtcsCkZtrZy1wxGxLBMb2p6cPC4Y+wikg4x bM9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BOHEn0gshPaD156fAbU+LPgYeovu+KLC6H+rqvqrtq4=; b=r9fRvVxkWzJTV/5oXzbtaR5VVB0dfsPlFAvzxagqIDWZUb5oCvUyOgDYAVKUq7p9vB IC+DsUO083A47qBCUsyZr3oX2Cg6Jfi83c5pw1D/ssTMpawvcVwJTAdKWy5RRzKVTXgZ mAIySAK2mh59MbZEtLofZHyhyvg1wkk6L6jvPoVDsgkMTkFaZ6vO9Q52VRlr8XdsTvAX IUp1TXHsEDEdw0uAmkDqzT4E2V3S3paYmyE58dDo1e6ynmi0N3IDbFYTRIAfs9eR+udf zxfQ7119VER44qTcHK2FQ9LdrUejw+lDoD1tyUNwcN/j8e02XQg0gjx0KY7eybUP2QC5 GC1Q== X-Gm-Message-State: APjAAAVTzQmbgVY5fjy3+J39vqeEGGIJ5jZ8jOza3amWs+E8gBDtBD7p eaNO7nh+WZyb6YwiO8gR7YvXiQ== X-Received: by 2002:a65:44c8:: with SMTP id g8mr34199417pgs.443.1562126926314; Tue, 02 Jul 2019 21:08:46 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id f2sm563251pgs.83.2019.07.02.21.08.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jul 2019 21:08:45 -0700 (PDT) Date: Tue, 2 Jul 2019 21:08:43 -0700 From: Bjorn Andersson To: Jeffrey Hugo Cc: robdclark@gmail.com, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/msm/mdp5: Use drm_device for creating gem address space Message-ID: <20190703040843.GA27383@builder> References: <20190701173907.15494-1-jeffrey.l.hugo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190701173907.15494-1-jeffrey.l.hugo@gmail.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 01 Jul 10:39 PDT 2019, Jeffrey Hugo wrote: > Creating the msm gem address space requires a reference to the dev where > the iommu is located. The driver currently assumes this is the same as > the platform device, which breaks when the iommu is outside of the > platform device. Use the drm_device instead, which happens to always have > a reference to the proper device. > > Signed-off-by: Jeffrey Hugo Sorry, but on db820c this patch results in: [ 64.803263] msm_mdp 901000.mdp: [drm:mdp5_kms_init [msm]] *ERROR* failed to attach iommu: -19 Followed by 3 oopses as we're trying to fail the initialization. Regards, Bjorn > --- > drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c > index 4a60f5fca6b0..1347a5223918 100644 > --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c > +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c > @@ -702,7 +702,7 @@ struct msm_kms *mdp5_kms_init(struct drm_device *dev) > mdelay(16); > > if (config->platform.iommu) { > - aspace = msm_gem_address_space_create(&pdev->dev, > + aspace = msm_gem_address_space_create(dev->dev, > config->platform.iommu, "mdp5"); > if (IS_ERR(aspace)) { > ret = PTR_ERR(aspace); > -- > 2.17.1 >