Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1117889ybf; Thu, 27 Feb 2020 05:22:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxidXmWHL5aX+RZ3El/h8Z13bNYSr/D1LnKQ/HM8/q/nfPJOBkCQDBWEkY85tc7aS6Hqy9T X-Received: by 2002:a9d:64b:: with SMTP id 69mr3145378otn.237.1582809740712; Thu, 27 Feb 2020 05:22:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582809740; cv=none; d=google.com; s=arc-20160816; b=Vhj9T5k+WFs6gmlfvhKYzB71LkB+/fkGkysv+KBSJauPiPn5b6H+6LDMnDcnWRACfM L8szYG0VX1WqIxeIwTELhzKcYDxIvAuf+dct+vaexhG/QMoTcPJvxx71rG/sMDWyGQBY 7wymtwwFOcMwids/V2RIHjMe8DInrlJD2XZ5L7GufFJ4UgC2YHFZF4vBxmDbGy0zLqH9 OCIqiMgUdMDq0x90gvouZq75w7xKepmDbk3QJ7D5CF4qQH45nAUQyOJfTsmc/7MOQx9k JBR5fnDOoZcK8+Y9bAlLiFfwZ+dRvhe61Y5TxGD8d8xpbBxtXGNsTjI+XIXdMEU0l3a0 rwTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2w6PduuGzWBIJqAtGt1TzV/EmMXU0UJHklEBPBn7KWM=; b=BIOm0mQQ6xgMRLI4jemsPHSeTpcPgNr6oEKVlNFnrQmxQo5JbP2GeZQ0A109ZmfQ76 G9DM79iCieQKT8mLUMFVYZE3uZ8BWrKZeTQMYUusukOZe2UNJnKr4V0CU9gXIr3UDD4z 7yOx0q15uAsN0KxhCD0WRywIBdC7bFsaafQghkN8l6kX5Yu/peT4HYgKkP0PUsmdlref w8de0fxN2EXVxe+mRbPsiz8QfTYjVhoP9c9ts/dijMQ4IbrzF7IjdCMz8o0TiYk79CZI BwhptxuhtcYdDHHLXryegLfm1lyH+EaaPfzNkA6WCat96AtbdwaJgQkLzU6hstTjtCov kkSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i+WpjK1z; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si1532734otr.197.2020.02.27.05.22.08; Thu, 27 Feb 2020 05:22:20 -0800 (PST) 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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i+WpjK1z; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729134AbgB0NVs (ORCPT + 99 others); Thu, 27 Feb 2020 08:21:48 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:37335 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729100AbgB0NVr (ORCPT ); Thu, 27 Feb 2020 08:21:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582809707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2w6PduuGzWBIJqAtGt1TzV/EmMXU0UJHklEBPBn7KWM=; b=i+WpjK1zsvK71tKCwbezWpkRKcbN+MrNmOAeTzzOMMyNVlUsgVFizHhBA5d/1w7yLpWe76 F1zsKxDw+haaZsLFQpi6PCTXNOqVNio6IY0/nYyxB16DPs84j8N8GcpiJu/B7ARWOf6q2w E9CGx/wnSQDETzPyQD5meQSOtGcQA54= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-266-qVqUkJBaOM6F-5_AL0sljA-1; Thu, 27 Feb 2020 08:21:43 -0500 X-MC-Unique: qVqUkJBaOM6F-5_AL0sljA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BC5BE18A8C85; Thu, 27 Feb 2020 13:21:38 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-150.ams2.redhat.com [10.36.116.150]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1F92060BE1; Thu, 27 Feb 2020 13:21:38 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 4EC7B1744A; Thu, 27 Feb 2020 14:21:37 +0100 (CET) Date: Thu, 27 Feb 2020 14:21:37 +0100 From: Gerd Hoffmann To: Thomas =?utf-8?Q?Hellstr=C3=B6m_=28VMware=29?= Cc: dri-devel@lists.freedesktop.org, Guillaume.Gardet@arm.com, David Airlie , open list , gurchetansingh@chromium.org, tzimmermann@suse.de, yuq825@gmail.com, noralf@tronnes.org, robh@kernel.org Subject: Re: [PATCH v5 1/3] drm/shmem: add support for per object caching flags. Message-ID: <20200227132137.irruicvlkxpdo3so@sirius.home.kraxel.org> References: <20200226154752.24328-1-kraxel@redhat.com> <20200226154752.24328-2-kraxel@redhat.com> <20200227075321.ki74hfjpnsqv2yx2@sirius.home.kraxel.org> <41ca197c-136a-75d8-b269-801db44d4cba@shipmail.org> <20200227105643.h4klc3ybhpwv2l3x@sirius.home.kraxel.org> <68a05ace-40bc-76d6-5464-2c96328874b9@shipmail.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68a05ace-40bc-76d6-5464-2c96328874b9@shipmail.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > So I'd like to push patches 1+2 to -fixes and sort everything else later > > in -next. OK? > > OK with me. Done. >> [ context: why shmem helpers use pgprot_writecombine + pgprot_decrypted? >> we get conflicting mappings because of that, linear kernel >> map vs. gem object vmap/mmap ] > Do we have any idea what drivers are actually using > write-combine and decrypted? drivers/gpu/drm# find -name Kconfig* -print | xargs grep -l DRM_GEM_SHMEM_HELPER ./lima/Kconfig ./tiny/Kconfig ./cirrus/Kconfig ./Kconfig ./panfrost/Kconfig ./udl/Kconfig ./v3d/Kconfig ./virtio/Kconfig virtio needs cached. cirrus+udl should be ok with cached too. Not clue about the others (lima, tiny, panfrost, v3d). Maybe they use write-combine just because this is what they got by default from drm_gem_mmap_obj(). Maybe they actually need that. Trying to Cc: maintainters (and drop stable@). On decrypted: I guess that is only relevant for virtual machines, i.e. virtio-gpu and cirrus? virtio-gpu needs it, otherwise the host can't show the virtual display. cirrus bounces everything via blits to vram, so it should be ok without decrypted. I guess that implies we should make decrypted configurable. cheers, Gerd