Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp862663rwl; Wed, 5 Apr 2023 08:38:39 -0700 (PDT) X-Google-Smtp-Source: AKy350aacjuOokO6okmVWWmblypRr9c99oyZOP+9TIOjecmyV7Yy3k9aJM7/Z66uxW39vP7bDeow X-Received: by 2002:a17:903:22c9:b0:1a1:a0b7:7254 with SMTP id y9-20020a17090322c900b001a1a0b77254mr8332854plg.62.1680709118624; Wed, 05 Apr 2023 08:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680709118; cv=none; d=google.com; s=arc-20160816; b=JNE5FrRjOzc1uhQoejPC1oenvyqry+/hzVjoJg8Vdlmgz8eB8h6Nu95qJj06xwFLuf rTRfw584pTQ1muj81PA9DYSCQalHpvrxv515c+mzwSvvhlrjxkUoEchCHqCI9d2YZFMC hLLS1MWHJOv//oJHUUFjeed/AUIiXGNAlHwctLBps8DGc8HknkBtccSJE7CSor5AMyxk l4kbU95DTmg5sFU8TYdH/pdEcRvYZPQr658w+C1K9M8O+zVxqB9Y8tXPmTc380K0ZHgP 8APX5inQBmJtEgFJydm2PPNbZmgrtAmvj8hyHMHrkVg2HMViFcKHW8hTepVqUcMoRTJ1 CoGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:cc:to:from:date:subject :dkim-signature; bh=QSFaPQEqFWauuwq5wK1tuBUPV8rypqU+umcss/29/Qo=; b=P3n/PQzAffJUxUr3o6xgCj7T14QGKZHLuAlLLJCOAZ5micgjkoY3DXJpIUL/zqoAw+ 2v+wh/dQYl32Xzv0iLmjqWjRGtoZjCEXGpUHqIJhD/aIki8fA+DCcmf1I00HWBZtrDqB OMPdezkfxPjZpaC0knW3wIfzcGSBj+nMtcKlw1na94mAOHHZrxhyI/LDFgl2gUFe1Qpp Fvp+hE+yQbEI2QUBMnzJG8fHcqeSFNVsZxID0Vt9fJ6fyEDaZVR1lQ/y/5XqrWywOWN/ 0/YT1X1ABBray838REoLRFlmtzFZjXGQscr/bUwPZoBMDgLJys62ni3qCAJcEi200uhS N7lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=BSVurwVH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a6568ce000000b004ff6f91fa75si12908379pgt.445.2023.04.05.08.38.26; Wed, 05 Apr 2023 08:38:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=BSVurwVH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238707AbjDEPhk (ORCPT + 99 others); Wed, 5 Apr 2023 11:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237845AbjDEPhj (ORCPT ); Wed, 5 Apr 2023 11:37:39 -0400 Received: from smtp-fw-9102.amazon.com (smtp-fw-9102.amazon.com [207.171.184.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E6761990; Wed, 5 Apr 2023 08:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1680709058; x=1712245058; h=date:from:to:cc:message-id:references:mime-version: in-reply-to:subject; bh=QSFaPQEqFWauuwq5wK1tuBUPV8rypqU+umcss/29/Qo=; b=BSVurwVHjPYmzJ1VUMxJr7R+HZIyyI52nz/01pVGHpmVoS2i9Kxn50PH +iAf4cy3/rLdqhOZenkGFKWPe6ax4ofbQ/iVEqpxHiwQAL4n3gC5YxLoQ Q8+FcIPd8DQDEKE14TVibTyl9khtvC3pBNaEqu15Y800Ew2Nb5SMfSb4t 4=; X-IronPort-AV: E=Sophos;i="5.98,321,1673913600"; d="scan'208";a="326412703" Subject: Re: [PATCH] drm/msm: Check for the GPU IOMMU during bind Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-pdx-2a-m6i4x-d47337e0.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-9102.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 15:37:37 +0000 Received: from EX19MTAUWC001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2a-m6i4x-d47337e0.us-west-2.amazon.com (Postfix) with ESMTPS id 83D7F60AEF; Wed, 5 Apr 2023 15:37:35 +0000 (UTC) Received: from EX19D047UWB002.ant.amazon.com (10.13.138.34) by EX19MTAUWC001.ant.amazon.com (10.250.64.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Wed, 5 Apr 2023 15:37:35 +0000 Received: from amazon.com (10.88.210.141) by EX19D047UWB002.ant.amazon.com (10.13.138.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1118.26; Wed, 5 Apr 2023 15:37:33 +0000 Date: Wed, 5 Apr 2023 09:37:31 -0600 From: Jordan Crouse To: Dmitry Baryshkov CC: , Abhinav Kumar , Akhil P Oommen , Daniel Vetter , David Airlie , "Joel Fernandes (Google)" , Konrad Dybcio , Nathan Chancellor , Ricardo Ribalda , Rob Clark , "Sean Paul" , , , Message-ID: <20230405153731.7pd2qygz2psowkeh@amazon.com> Mail-Followup-To: Dmitry Baryshkov , freedreno@lists.freedesktop.org, Abhinav Kumar , Akhil P Oommen , Daniel Vetter , David Airlie , "Joel Fernandes (Google)" , Konrad Dybcio , Nathan Chancellor , Ricardo Ribalda , Rob Clark , Sean Paul , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230309222049.4180579-1-jorcrous@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.88.210.141] X-ClientProxiedBy: EX19D035UWA003.ant.amazon.com (10.13.139.86) To EX19D047UWB002.ant.amazon.com (10.13.138.34) X-Spam-Status: No, score=-10.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 10, 2023 at 01:05:36AM +0200, Dmitry Baryshkov wrote: > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. > > > > On 10/03/2023 00:20, Jordan Crouse wrote: > > While booting with amd,imageon on a headless target the GPU probe was > > failing with -ENOSPC in get_pages() from msm_gem.c. > > > > Investigation showed that the driver was using the default 16MB VRAM > > carveout because msm_use_mmu() was returning false since headless devices > > use a dummy parent device. Avoid this by extending the existing is_a2xx > > priv member to check the GPU IOMMU state on all platforms and use that > > check in msm_use_mmu(). > > I wonder if we can fix this by setting 'dummy_dev'->of_node to adreno's > of_node. Did you check that possibility? I said I would check and then never looped back around. This will stick on my todo list for now and I'll check on the next cycle. If anybody else wants to jump in the meantime then please go for it. Jordan