Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2517187ybi; Mon, 1 Jul 2019 13:23:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNRZFDIqAb0CKiVK1WI8B3VgFwQMITBXpkqjvHS0zgC1qUcdx4FMFSRSXv8oGXC+nkpfzM X-Received: by 2002:a17:902:2ac8:: with SMTP id j66mr21993676plb.273.1562012601408; Mon, 01 Jul 2019 13:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562012601; cv=none; d=google.com; s=arc-20160816; b=mpzPQCooJm9UqLks6IexSHEmkpOTnHchqiNEaB6n9s40lLLgb5nKh8ptAt4Sukp5/9 V19AQLo9+EYdBouruWYnL2tmf8ufHTkaP1x4y6vrMZe31mMZmmZKDEMJCJ4XbewLA6eK flypInZPZSICHZol1+0LRPnBMCxFXOSoy/0nxXFlSC0YejktyLt4Bh9sIrAo41joV7lq aIch4YYgBlP3+hmVansO3jSp2zmQ/cZp1iF2N71UtO/fd98sdDbNFrBrIR6zIXJ4rAML rzv8XUMqyt+Iyer8EwBAinSawQ4K/ATNI7+skfvp57BCltlaM5gMOASaoVPB9wh0D11X RQ3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=I1GjeEITaALvhm8pAAmaP+3EXBqqOojgJYfM1DzUyl4=; b=ZYtJ8Ni1imVc5+xO2efu8hsAMmNYoCEFdfbdo+LDIOD96X2ZdhfGb9Sli9MpTPYKmM L6sL8XiXYhZtSwEzT/kixYVoHFjPFhjRTsHPULW4Ujle4p4t66IaPIN0sf/DQGeP9gqk bwb0MWDgLcutgP3BV1CyWFbitWcJL84K4UcCg+R0HK+RWkI4j6E+5TtAztTaIoT9Umps 7F1GCDKF9a1gIyRcww/ngfoyRgRzddFpQaaF8m6dQwtnOiZ8Rb4BZJ1uzJGYA6ELsTze o+pZpaxwrVOvJXInpARvz1+GUYUThLWL+6SxN1Jb5gZ+71S4KTMjnFYbmxGh3skogPaP e3mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ljiAZQXj; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22si11279047pln.150.2019.07.01.13.23.06; Mon, 01 Jul 2019 13:23:21 -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=@gmail.com header.s=20161025 header.b=ljiAZQXj; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbfGAUWj (ORCPT + 99 others); Mon, 1 Jul 2019 16:22:39 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:43079 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbfGAUWj (ORCPT ); Mon, 1 Jul 2019 16:22:39 -0400 Received: by mail-io1-f68.google.com with SMTP id k20so5450061ios.10; Mon, 01 Jul 2019 13:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I1GjeEITaALvhm8pAAmaP+3EXBqqOojgJYfM1DzUyl4=; b=ljiAZQXjCG4pFHtSRCcPXocbqglD4vhZPuwJC84rX30dPSNf0N3UPo8R08EQtHKzcD bPlDY6tg/r4gkkYT8VsXyWWjkfqZBRr7VnuAU82Q3x02rfFkrr+9dhSo+QsdhFaqeAPD FEzS5DKZj9LBi8UzkRXTkKcm8mtLHJBWYDDdFuAZU+lxwY5be8vvc2lxXhT4IE+vu0Un BNfU7vLcCgzf3Xa7Ztrf3h8T1HKncve6yvVG5RaE50d0YdarMfYu9/X2E4VIx2S8JIFl TSQEb4RkZ/ozuP/OJ8bWIz9tmQF53PKa/rJCQ0SC7uwfoMldSqlRWIYp8TrBcDXKXpkK dkwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I1GjeEITaALvhm8pAAmaP+3EXBqqOojgJYfM1DzUyl4=; b=W91EkpkGY2rymQij3B2hExV7Bf0QBmenOY6AumliGa2+Qb8J40EqNSbBFVjNwnxNoc At80IZaLE8n9zslmroHR/lz3xQJh2XqCr3yymRGEg2d2MJrNO4t+RGhJDBgom+mHKGIT vlhn30m8wkxyi/AravbNo/B9qWnznuamMCPRsEF8+816uQuYe4UaUb8k5UeUa520IP6M +ewKmkUIQwCvYARWr33i2q5kIuWwNPSG21PqaMMqpmmLPoxL0/5smGdPY71S0/PrMl0w j8wasUBC5g+KvA+ulLF6euidmx42W7EJtNk7YNsdWrdQqz7/80HzZwNhBLWBj3nsxSJN 7DyA== X-Gm-Message-State: APjAAAX1y/QuZVOOm1bXInzCI3MgV0V7YqCk1Bd7m64UEmQdMOk+RQAA uufd4NgXy8YbifgZG6ks2+96s+Z8Ou/3QtJpRC0= X-Received: by 2002:a6b:901:: with SMTP id t1mr22675024ioi.42.1562012558828; Mon, 01 Jul 2019 13:22:38 -0700 (PDT) MIME-Version: 1.0 References: <20190701173907.15494-1-jeffrey.l.hugo@gmail.com> In-Reply-To: From: Jeffrey Hugo Date: Mon, 1 Jul 2019 14:22:27 -0600 Message-ID: Subject: Re: [PATCH] drm/msm/mdp5: Use drm_device for creating gem address space To: Rob Clark Cc: Sean Paul , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm , dri-devel , freedreno , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 1, 2019 at 1:45 PM Rob Clark wrote: > > On Mon, Jul 1, 2019 at 10:39 AM 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 > > --- > > 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"); > > hmm, do you have a tree somewhere with your dt files? This makes me > think the display iommu is hooked up somewhere differently compared > to, say, msm8916.dtsi I'll post something somewhere and forward it to you.