Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp53383pxm; Tue, 22 Feb 2022 16:29:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuILp4mKpUXTj0PynEj0Kdphu/jK62LjfNb9UCHloLZ0gJzhXJfLm7LWqYV7N59z0/jlnf X-Received: by 2002:a17:906:d8ae:b0:6b7:98d6:6139 with SMTP id qc14-20020a170906d8ae00b006b798d66139mr20780142ejb.498.1645576196550; Tue, 22 Feb 2022 16:29:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645576196; cv=none; d=google.com; s=arc-20160816; b=r+KUOXOCDAagvVSApNmq8F35USgy2kGWJszw8XLEIZXK+p5FWg4eOs1r6zMVJNLmYT jj3ESL0BtLfPnM9c32mFpNr7BssMCQo7P3FkZGWqKC+4JJGSkBiOQVsQ0YZhbpErUG3M o5AgQzBHNxSLDii0THYv7MzioijIziupcWZup6lgGtcvRMU1kzh07yZbwPxcdAwSDcM3 pRDfA/euqtNbzFrudPbV8o0d+URa9QtxZSURuUx8dpFMuo4KF5grdVvl3Xeoq16pw9RM 5r3ELDfaCKP3/EVU6vxx16MM92zCUKY1ju5nCfqLzAJoBww8/tC7Rmwgp/axJ4c+BYK/ 6b2g== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=orNwPadLyZMf1dU28nfIOtIad1J0UPF7cu+kVS+SXB4=; b=eEJQFobPHaC0x2wkp1YHKg478HltZmIM1WnTN+6M8WiwqqFW6jH7t1T6JExTlxwYwK 8KmGKuQLnKq0NEMkbV4XyDSRjCjh8SA1rATykEjH6C5zxc3Qdzi5hJzTAvVOBZ96HruN fbZSCu6d2Fe9vMu6VEMC4uDkldzrSJ+wGyJ6f3WvnNJYd0K2RVx6MlVfKoSrdrew43Nf LJJo8yAYEnEdrQk8+HsAvrYEJQ4Puj3Yg6ck+VU6sr0P5kpVJwOct+O12f/gaoOJaS2f qntOhu6XZIbYd3juCPBTmp2PhMVSWOT7EZv+NAwJZx7RDZwBcQWjwio3TUhO1zhXtk14 QvHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qe4lpTnN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z12si8210349edd.405.2022.02.22.16.29.34; Tue, 22 Feb 2022 16:29:56 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b=qe4lpTnN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233790AbiBVQYl (ORCPT + 99 others); Tue, 22 Feb 2022 11:24:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230295AbiBVQYk (ORCPT ); Tue, 22 Feb 2022 11:24:40 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E846166A79; Tue, 22 Feb 2022 08:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=orNwPadLyZMf1dU28nfIOtIad1J0UPF7cu+kVS+SXB4=; b=qe4lpTnNgBZVySRtcKlpB9P4wS cwDoiJwxuZOdS+saabUOIkzYZUV41PPWWbuJqZLkcEoQjIGNYmgD2B6WmbScT1vwsjJLMRmZgU94M swkrlzZh/4Bdp4AunBMnVTj2jCeH5ARtT5329KjDjsnCVbaTIrlWEHKS9Re5hxdM+oOQpJtDCCoqL K6Ru76oCv7p+KFlznfV1lTS0ppH/XOCQx2CORBcwciP0VtZ1VGPdinUjpi+X27Aepz0xYeV2ep2lr 4fWm2cB3R0eftyPwX7HofBbcan+KhKUiCFkXQ7012S0za5OCvDg7tziO8W79x8PsXT7Cn+RYkuFkd uJKXShew==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMXxR-00AcJa-Rg; Tue, 22 Feb 2022 16:24:09 +0000 Date: Tue, 22 Feb 2022 08:24:09 -0800 From: Christoph Hellwig To: Mikko Perttunen Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, joro@8bytes.org, will@kernel.org, robh+dt@kernel.org, robin.murphy@arm.com, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 3/9] gpu: host1x: Add context device management code Message-ID: References: <20220218113952.3077606-1-mperttunen@nvidia.com> <20220218113952.3077606-4-mperttunen@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220218113952.3077606-4-mperttunen@nvidia.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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, Feb 18, 2022 at 01:39:46PM +0200, Mikko Perttunen wrote: > + > +/* > + * Due to an issue with T194 NVENC, only 38 bits can be used. > + * Anyway, 256GiB of IOVA ought to be enough for anyone. > + */ > +static dma_addr_t context_device_dma_mask = DMA_BIT_MASK(38); You need a mask per device. Please don't share the same variable for multiple masks. > +EXPORT_SYMBOL(host1x_context_alloc); All this low-level code really should be EXPORT_SYMBOL_GPL.