From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE10FC433E2 for ; Fri, 4 Sep 2020 16:47:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A32682064E for ; Fri, 4 Sep 2020 16:47:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EgsDNr8j" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726858AbgIDQrD (ORCPT ); Fri, 4 Sep 2020 12:47:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbgIDQq7 (ORCPT ); Fri, 4 Sep 2020 12:46:59 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6D04C061244; Fri, 4 Sep 2020 09:46:59 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id ef16so3308640qvb.8; Fri, 04 Sep 2020 09:46:59 -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=TBpouKohZ4xnNFvQAORhEKmSrdyDNk10oVx1FtC9Bws=; b=EgsDNr8jq4DF077DE8FFLRkR59IU61+j8V/Ka9V7oYrWIFPZmMCFtBwfask+T/m7M7 ABkQRjkqmQNhqKh2VT7i4UJ/Wt90Z38MeTrYGvULyHJ82SQ6PsuQNCiKdiLa9nveFUpl R04cMMdDGxXDTRPRVqK11KOxC3g2sVS1/0YvzjlCoZCwTT0+M1Yo/uJWYoNvcaH8IrzS D4wFxN5u+Z5lTv8jIxdDc9Kz7W6pwsymzzpENZP0uaCYmJuezDkqwdXmmIDXl+AlvX5a XlvvIg2z5oM4vk2ffrT0qm6Rw0F7DcmoUiFJgFt2a2LOiExIWcNVg47MKAjj5MqzSRpP R2uA== 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=TBpouKohZ4xnNFvQAORhEKmSrdyDNk10oVx1FtC9Bws=; b=g+tYxbV7BsPwjGudb6bg1xkdjgCdRJZ3foys09dQqAsd2x7tRwrDgwAx97+Vl8/mbZ bQynJ/see74USOaLKE0Ox1CTRO70zYkEAxSgDNlAClvFF65S3K75K5L/p03WJWos1hUc UypN5BbFj8wiaNqR1Zt1YBLFwre0Z0C9IJNweflNa/5oXQbEawnvhmseJq8/peFprbGX OmxLHqQJHE0bvhoi4VXJKkpQ9x+pePUl8/0ARupETlmRgKtBuT47Nt11B4pZpBVM2tDr L6eu6MqkCzokc2VcA1i5Mc2055fWBDoO7aKzJOR3NJKauGeyvHWMVwlMn5Jpv7TJMc2Z mRyg== X-Gm-Message-State: AOAM532BTdTavX90ZfYt2gBt2cfvLkZ9OYZC04qLvZ/71b3HbTu4E8Bm 7DHP9v184aI+Pmc9wbZx6nbxj3oajrhkUs0/SvY= X-Google-Smtp-Source: ABdhPJwyy/xhHl+JQi8gUbkrBFV9qdIEd42p3ahcLsVYoc0LxBY3nBUW4K/0j87szLhObsiHhZk2WUEKzePSgoAinVs= X-Received: by 2002:ad4:4ae9:: with SMTP id cp9mr8657659qvb.96.1599238018778; Fri, 04 Sep 2020 09:46:58 -0700 (PDT) MIME-Version: 1.0 References: <20200817220238.603465-1-robdclark@gmail.com> <20200904091117.GH6714@8bytes.org> In-Reply-To: <20200904091117.GH6714@8bytes.org> From: Rob Clark Date: Fri, 4 Sep 2020 09:47:45 -0700 Message-ID: Subject: Re: [PATCH 00/20] iommu/arm-smmu + drm/msm: per-process GPU pgtables To: Joerg Roedel Cc: dri-devel , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , linux-arm-msm , Sai Prakash Ranjan , Will Deacon , freedreno , Bjorn Andersson , Sibi Sankar , Vivek Gautam , Stephen Boyd , Robin Murphy , Rob Clark , Akhil P Oommen , AngeloGioacchino Del Regno , Ben Dooks , Brian Masney , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Emil Velikov , Eric Anholt , Greg Kroah-Hartman , Hanna Hawa , Joerg Roedel , John Stultz , Jonathan Marek , Jon Hunter , Jordan Crouse , Krishna Reddy , "moderated list:ARM SMMU DRIVERS" , open list , Nicolin Chen , Pritesh Raithatha , Sam Ravnborg , Sharat Masetty , Shawn Guo , Takashi Iwai , Thierry Reding , Thierry Reding , Wambui Karuga 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 Fri, Sep 4, 2020 at 2:11 AM Joerg Roedel wrote: > > On Mon, Aug 17, 2020 at 03:01:25PM -0700, Rob Clark wrote: > > Jordan Crouse (12): > > iommu/arm-smmu: Pass io-pgtable config to implementation specific > > function > > iommu/arm-smmu: Add support for split pagetables > > iommu/arm-smmu: Prepare for the adreno-smmu implementation > > iommu/arm-smmu-qcom: Add implementation for the adreno GPU SMMU > > dt-bindings: arm-smmu: Add compatible string for Adreno GPU SMMU > > drm/msm: Add a context pointer to the submitqueue > > drm/msm: Drop context arg to gpu->submit() > > drm/msm: Set the global virtual address range from the IOMMU domain > > drm/msm: Add support to create a local pagetable > > drm/msm: Add support for private address space instances > > drm/msm/a6xx: Add support for per-instance pagetables > > arm: dts: qcom: sm845: Set the compatible string for the GPU SMMU > > > > Rob Clark (8): > > drm/msm: remove dangling submitqueue references > > iommu: add private interface for adreno-smmu > > drm/msm/gpu: add dev_to_gpu() helper > > drm/msm: set adreno_smmu as gpu's drvdata > > iommu/arm-smmu: constify some helpers > > arm: dts: qcom: sc7180: Set the compatible string for the GPU SMMU > > iommu/arm-smmu: add a way for implementations to influence SCTLR > > drm/msm: show process names in gem_describe > > Can the DRM parts be merged independently from the IOMMU parts or does > this need to be queued together? If it needs to be together I defer the > decission to Will through which tree this should go. > Hi, v16 of this series re-ordered the patches and has some notes at the top of the cover letter[1] about a potential way to land it.. tl;dr: the drm parts can and adreno-smmu-priv.h can go independently of iommu. And the first four iommu patches can go in independently of drm. But the last two iommu patches have a dependency on the drm patches. Note that I'll send one more revision of the series shortly (I have a small fixup for one of the drm patches for an issue found in testing, and Bjorn had some suggestions about "iommu/arm-smmu: Prepare for the adreno-smmu implementation" that I need to look at. BR, -R [1] https://lkml.org/lkml/2020/9/1/1469