Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1021499ybi; Wed, 3 Jul 2019 08:12:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFnCSjdHs4fhJu2g4LWAqhwxnXuuE3SnKTj4TUGKNHlGJJuYcabkb4cmiO0tltO3OMb3Qu X-Received: by 2002:a65:498c:: with SMTP id r12mr36723649pgs.27.1562166737690; Wed, 03 Jul 2019 08:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562166737; cv=none; d=google.com; s=arc-20160816; b=Cf16jvpUwWDngVBTFUBHILsRO/yXJEV5o0im7snFr03/kJYkDeuOF5ByzEcuVAUhAg RfHpG8ucSrp07ESOBl08CXK8x8RVF4wAtOeM2m7AUbBBPio69l1nKENCV56eJsGZHKZC XXsR9/V8kbX1v7WoD2wClwe+xKFOVdNffld89Fer0iNp0vksbRuJMZ6S1TN8Cb7fsFUy Nbt7hHnChO1GzTxgdsm79Jxi0OmzSzhryet6/zx3WZh0kZW0P15uuujDo5VWrVk5BdVa 4XjPtpn53la2NbtLMtKvNLjjlPxTmSx3+D8Hj+m1/pNxz73FfUfnMBg/3aD35TCrix4Z ITSg== 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=4tBeQ15keJRuzad4ERXIDpILI/nTmHRA/IZ5Wy12SIY=; b=vDXH/d9dIzt2CyNKMmi9aNUhIvBhz4lV7j5RUdWLdYPQtJTBXmmGLhDVk0pJRYLAI4 UZO/t8mYWuI0/zw6a4KZJI+XtK0grqQv4C5Rbu9qGfdsoozpIDv57qMued1h4cXl43Cy EwSYj4YH2BW5ErhhpD5ZOoWgv+KSa3wgwn4WASmVmpge5i1nJQyD1fEmhJeQ5XyXXGxg YlQzhNCmcWqfqcb/SXbDir2bU7dQsEAAdVRYGaMVSBIf3bPhndehQaXyKASRTVtfX46e ax7qSa7eElV3o+wel2Zp7quZ8wq11Rx9XjSUxfdaxUbVn4ANSrHx7ZIjuex0R6uZoo+Q b+lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Kwjl9r08; 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 s21si2411880pfm.225.2019.07.03.08.12.02; Wed, 03 Jul 2019 08:12:17 -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=Kwjl9r08; 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 S1727054AbfGCPKK (ORCPT + 99 others); Wed, 3 Jul 2019 11:10:10 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:39916 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726473AbfGCPKI (ORCPT ); Wed, 3 Jul 2019 11:10:08 -0400 Received: by mail-io1-f65.google.com with SMTP id r185so5591510iod.6; Wed, 03 Jul 2019 08:10:07 -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=4tBeQ15keJRuzad4ERXIDpILI/nTmHRA/IZ5Wy12SIY=; b=Kwjl9r08+wXXoiN7tk3DWvDtFrJpEccsm62jss4sY9SfrWV26ulm9a3JOfJUxHmx7N ehnLYqfv1Bt9MXCPQtbN5rT42RI4XGhCDypgyS9k5Tfir6+5Nu1f/Hqphsyay/q/l4NA cA6nHKqA6BXqsZfKoGe4YBQ6tF22kOQ/o2u6LwBr9PY0WPF2rGrJLEchvXtnf4jMV607 FH7GaCt/uON5U/+J0ntxesMHutIiyrchvocnI1k+FuPUgEcEBqOoA2aZo3Cmee9uUUjj +jdhx2TJH6g0kj5g/7R7WRR8+8zlr/C2poqXaeVNeakFCFDvMgpp6fdaFb+YyyIbVG7N ZP2A== 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=4tBeQ15keJRuzad4ERXIDpILI/nTmHRA/IZ5Wy12SIY=; b=FKW2mryGH5aqWCTTMFnE9cImsSK6rkCSpCtjrhA9ulOe9OhQCCvByGphpq9lTHdRX2 KLVWMAlw6Gwk/axj47Z3k6SNJABM6xtOfg9+izouB+hVHwIDThHHO5V2sSim8tJl7LwP Oago4MTgDNctb32eHjx5izKefo3iKr0DMOFlF0RZWY/mJc5PYZKNgREB1/OjMGvoMw+y 3D+I17EmOrbOn4rndW8Ux1AqCB2w9zsDcesubYQvdR42kYDTUENvziQlsBMinyCQXX54 vHhaxjb22OM2jXxdjvtB7NuK3fXmABkqFGk21Tv2rnC2qcgQOo25hF9PYtAVbijscfwE 8Gng== X-Gm-Message-State: APjAAAU9pskGHcQKGmViMR3Qn5VMARBRV02n/nk7ajejii2SUswcrLCK cRSW8Pou4gfEcHsSMW1Vv4zE/YnIfJ/ZFoIGBuRDNQ== X-Received: by 2002:a02:bca:: with SMTP id 193mr43442848jad.46.1562166607574; Wed, 03 Jul 2019 08:10:07 -0700 (PDT) MIME-Version: 1.0 References: <20190701173907.15494-1-jeffrey.l.hugo@gmail.com> <20190703040843.GA27383@builder> In-Reply-To: From: Jeffrey Hugo Date: Wed, 3 Jul 2019 09:09:57 -0600 Message-ID: Subject: Re: [PATCH] drm/msm/mdp5: Use drm_device for creating gem address space To: Rob Clark Cc: Bjorn Andersson , Sean Paul , David Airlie , Daniel Vetter , 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 Wed, Jul 3, 2019 at 6:25 AM Rob Clark wrote: > > On Tue, Jul 2, 2019 at 9:08 PM Bjorn Andersson > wrote: > > > > 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. > > yeah, that is kinda what I suspected would happen. I guess to deal > with how things are hooked up on 8998, perhaps the best thing is to > first try &pdev->dev, and then if that fails try dev->dev Thanks for the test feedback Bjorn. Its unfortunate this solution didn't work as I expected. I'll give Rob's suggestion a shot and spin another version.