Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1126053imm; Fri, 27 Jul 2018 11:32:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcSUiX4HWF2S3w6DLaefNT4qk+24kINkn/v7O30R3d1u2C/f3PLoO0GeRGeL4sjZew/WkPO X-Received: by 2002:a63:ff21:: with SMTP id k33-v6mr7075913pgi.38.1532716367342; Fri, 27 Jul 2018 11:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532716367; cv=none; d=google.com; s=arc-20160816; b=HD4uKPulzjJVWVyy/BddqturgSJaeWk2YipFWrZSqodjxhVgp0xaPv/dbY3LZ9YLE9 OzOUN0X4OlAAq1fGsOGf8hUwL9Xs0hXih6h7KP3KAxciWF2XHovtAbC3tWaER4XwO/65 0KhtakMoU0gZf/vqQ/ZfUYJsFB43BENJsTnholcN5bcuWHbFLlMbSV5o82/2zAmi2CYx BvWwRT/k7ePJh6MnPIMR1PfG36FSw1ZfqkKWmZ859zHrPncKokv8T57qt9ZkxHdDtDs/ w5r39ICdzo2XFi4dpgdg/lysyfgzbBE5KYc08OM6gGOjZ+HGH0OcYfqtzi34SRQIlr6+ Csxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=blyfy/G0im17035nOn7fxH3whcAABGTISN2HW3PzbE8=; b=rGrwNT9ZYrTp0wHBwH9YcaQdwWBJIqQxrQzA3HBHGBMcLYgE2Qtu8XP1J048Hcmuf6 PjlpBZs1Ep4aLIgKcCTEf+++VU2tpDcGsrF7jCmtpWF/zwkmCFedKCnL4xjGZekG1DPh xx2Z2YAmia8O0YqZ7DrwbdlzOqZHb/fxiAq9B6sJYHS6haCTcrOtu9rTyYw1INxcsfZq 38fpmS+vfLlfIvvxvFO+e8FFzthVLnSq5EWfHOVbsQvGCZSGOje0VEVzcs/Z0IuZ1kl5 /+YiLgazUJAn/nbgfYu0fSbSha/DbWk/ccCpUb1REtMENtcBR6HXI3DhIbl+hHQDN5W8 qD+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=HPqtv6Uv; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24-v6si3977270pgj.145.2018.07.27.11.32.32; Fri, 27 Jul 2018 11:32:47 -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=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=HPqtv6Uv; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389082AbeG0Tym (ORCPT + 99 others); Fri, 27 Jul 2018 15:54:42 -0400 Received: from 8bytes.org ([81.169.241.247]:41568 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730636AbeG0Tym (ORCPT ); Fri, 27 Jul 2018 15:54:42 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id EA98D1F0; Fri, 27 Jul 2018 20:31:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1532716294; bh=KpqDg2KCcbkFS/0m+A6X1Q2Zw8YtqGMgsvCds18pF+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HPqtv6UvTLD0pwhJNtzupdtjAMcn1jPjzTp8Zw3SUYEKLeqW4g/0Wthyie2k+q/qg QShwcXGHrH+iIwklfF6WUPJUshGMkV5oiHQSz89fFiKSNJhGGVLuiyKEs9ZVBzV7mC c6uOzqZ1pOgacX1BWdQLX6UyzLm5MrL0aru6yib3SP9brJZ1z4wVY211DdfINKUQdU XfsXB8axI/887MVXoDnDC+UNCh8X5KSSS3ssdQw0J+1njPi/o9UiVwkG4G5zSskNOo Td5Me0+nyozHeohK0083d1E5lKicwRc/cc06UYe3RjgZtcdR2TglSGOokr0dMxKta1 KtUCCsdhNjEBg== Date: Fri, 27 Jul 2018 20:31:34 +0200 From: Joerg Roedel To: Rob Herring Cc: Dmitry Osipenko , Will Deacon , Greg Kroah-Hartman , "Rafael J. Wysocki" , Thierry Reding , Jon Hunter , Mikko Perttunen , Frank Rowand , bskeggs@redhat.com, Russell King , Catalin Marinas , kwizart@gmail.com, devicetree@vger.kernel.org, nouveau@lists.freedesktop.org, Linux IOMMU , dri-devel , linux-tegra@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH v1 0/6] Resolve unwanted DMA backing with IOMMU Message-ID: <20180727183134.GD6738@8bytes.org> References: <20180726231624.21084-1-digetx@gmail.com> <20180727082512.lpvmeuvxnw3mpeym@8bytes.org> <20180727090328.GH28088@arm.com> <4164951.xGHfcFJ9uZ@dimapc> <20180727142000.76zgficpta473snl@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 27, 2018 at 11:13:31AM -0600, Rob Herring wrote: > I don't follow why we need a property rather than being implied by the > device's (the GPU) compatible string. There might be devices where either setup works, with or without IOMMU translation, and the firmware can set the property depending on whether the user wants more performance or more security. If we have a whitelist in the kernel this gets more complicated, we probably need additional kernel-parameters to overwrite those whitelist entries. Having a property in the device-tree seems to be a better way here, imho. Joerg