Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1394730pxj; Fri, 21 May 2021 13:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvo+6Gfj5+wmcZXkf5E+kntqraemtbLMRpDJLWIDGa1GmJoAZcbWPxkQuIMNgJngg5yi7v X-Received: by 2002:a6b:8e04:: with SMTP id q4mr597528iod.54.1621627826735; Fri, 21 May 2021 13:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627826; cv=none; d=google.com; s=arc-20160816; b=Ae6UjicPskyrCpx+k6uocbvNZmPj3ovLkjz1fers+7G0qu3NgxbmV0XWZdyySvDSTW 4n3gXosp2HACk7Fcb8h1hKAFLv/hl3XKtjGwkwJ3alSsm1MYC0faq1ChqAYpCPgH0vvg xOjXoPRdE1jLaZ4Epkv1mpDU4iYmjYWBKXfg4CRBjwp7i8/WivFC2hK7vLun9stT87Kp GvVuvcp8oR7oGDVJLBnnvNYml+T/E8mSDehf//FGPxf6NfD4N6ss6tsVQSSJx+sB3iPA cNyapGOEnXjVXH8mgzKtk0C/pSm+F4BwNDMdE3nTirVk0+5jbZ2Ky7jot8YoKuyc4Zp8 jeSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lrqIjtVqlqTd3qVOYRrKrakE5e/YtZ571PDo3JzIEB4=; b=W98oIKfhGaF4yYEyFj/VgSMbeSaZu5gS/bhMlZSHyrzS8hI0zPrymNYW80GkHflmYm RY4+VQPcWV9cEMwix0KgSnAqsdkcFtcqjezT7k01iWnZ/xZzFfg8wvFMp/so2mQ35Ha8 cQOBhr3tRqMPZX+gUXVowKXADTocf5nmVejzd6xPf1Nb4hgZ6dKmGpTQArdmFFXko7ej sneBPPtGjQGJCRLXuJOy+eYJqYuNXsCliLZzL1tkKMJHxm9q53J/GJ2vGOa4XHK3ZUBf SYizfpFX7r941pWgpXOYNPH+gKrZcoj9pUNt7xx52F2ZRF+JqBDhycQsIOgcbISm7hHw NCfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o67si7041766jao.17.2021.05.21.13.10.13; Fri, 21 May 2021 13:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235809AbhEUJSE (ORCPT + 99 others); Fri, 21 May 2021 05:18:04 -0400 Received: from gloria.sntech.de ([185.11.138.130]:51592 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234727AbhEUJSD (ORCPT ); Fri, 21 May 2021 05:18:03 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lk1Gh-0004vA-Bn; Fri, 21 May 2021 11:16:31 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: joro@8bytes.org, will@kernel.org, robh+dt@kernel.org, xxm@rock-chips.com, robin.murphy@arm.com, Benjamin Gaignard Cc: iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Benjamin Gaignard Subject: Re: [PATCH v5 3/4] iommu: rockchip: Add internal ops to handle variants Date: Fri, 21 May 2021 11:16:30 +0200 Message-ID: <4753042.QJadu78ljV@diego> In-Reply-To: <20210521083637.3221304-4-benjamin.gaignard@collabora.com> References: <20210521083637.3221304-1-benjamin.gaignard@collabora.com> <20210521083637.3221304-4-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, 21. Mai 2021, 10:36:36 CEST schrieb Benjamin Gaignard: > Add internal ops to be able to handle incoming variant v2. > The goal is to keep the overall structure of the framework but > to allow to add the evolution of this hardware block. > > The ops are global for a SoC because iommu domains are not > attached to a specific devices if they are for a virtuel device like > drm. Use a global variable shouldn't be since SoC usually doesn't > embedded different versions of the iommu hardware block. > If that happen one day a WARN_ON will be displayed at probe time. > > Signed-off-by: Benjamin Gaignard Reviewed-by: Heiko Stuebner