Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp267872pxb; Thu, 2 Sep 2021 03:51:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmbxwiI5GyqHuWijXoqHqM4vyXK0oa/1lq7lrdG8RRLUofWYoHTNHWva85tSRNN4DlKwHi X-Received: by 2002:a17:906:64a:: with SMTP id t10mr3099841ejb.5.1630579881618; Thu, 02 Sep 2021 03:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630579881; cv=none; d=google.com; s=arc-20160816; b=K7mGvdHuKK3uiEewuWIo3Cijxtkv6rGHnrIrhYLp7DPmwiFMKrar24QYFHnAROGMxK JPBbzYhybSiq6P1vAcnU/ciJVRAl+Z7ZR0/hqGtYecIzWYaCgrje8xxpHl/a89Ocb8zn zUdVW7VI0YTY4pjgQTTt5BQgHwgjWkdw7YgkUvPK8dtCT8cZbWW3fTEF+KWBG0x4aQ5g xktDBLZNI6hr6rKCp/nig+WZ4DzJExUenpj/O+tkkw977nKqdnX8Xms7/2sJC27btXvw BHYNFZi7MOVG4XIh538Le9ntzvWOQV+oJkrV4NyswEKp2jh8aCX5+yqHYM8oTQBa41/0 FNQQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=T8iMcVMtgnL9iuUQ7xEHqtPN2nGklJHWa5SfBMcFyr0=; b=JNeK0HLneRSKXY9x/9KuQT/6lTbTKYST/IMFouU4T4x6WunG6nNh51LBD2Qvy3e03+ jqBEYC6MG+ThPf5NSD3/WI7oTI34V9BzXFN3JkkYuuqb05suScViyznT4ZhoiuOuEkJc PCoUXga5qh+U43TjdetahkyIpaNhzVmw7H+MTcqJHrWoWTyR/I9hvekJW4e/4iedgB4a 91dfNlfhRfFdyI3RBi00dpIUJnWTdpccLEnLZ3Pcl+A7rj6be0G4gNfDG8K6GTBcj6hV /3CfZF0/wZQon8VHk61gu4IrygtocWe0/2aUpFyFiOc5Q++SjWuqIbz/eSf4LLCgOgoo 18qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=CW13c4Hi; 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; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji22si1314202ejc.361.2021.09.02.03.50.58; Thu, 02 Sep 2021 03:51:21 -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; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=CW13c4Hi; 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; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244114AbhIBINT (ORCPT + 99 others); Thu, 2 Sep 2021 04:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243655AbhIBINS (ORCPT ); Thu, 2 Sep 2021 04:13:18 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C70C061575 for ; Thu, 2 Sep 2021 01:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=T8iMcVMtgnL9iuUQ7xEHqtPN2nGklJHWa5SfBMcFyr0=; t=1630570340; x=1631779940; b=CW13c4Hip6eJx9WndG4zJdN3BVXo3AbXyV5lJBubgD5cdXV 9ZpUxmM5ck7vweR1OTmLoO12xQz3OIissWmFsY5gc44TFqdn9SQl55rxWnL20Ri3O93r7OscLo1Us I5Q+yuC64WZ+gW14+i/6rG9uB72hyuxb/9KKVzi8GOHHPHijurb7uTlgWdeTHGP8Vw2DAZXHk4BYn SDu2pcIp1BaKkwlJc7bh+d7p0AUUr8tHmyznS3n+hntnE9SBdrfqywdO35wTbfVssWoYHlRkcUNOD Mn9XMTlRwEtnUObNqlCoM3tmdAiTPVMjCc+qqfiAzYDvCorSgTXbd5/Q4KrXy5Xw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1mLhpI-001WhA-0D; Thu, 02 Sep 2021 10:12:00 +0200 Message-ID: Subject: Re: [PATCH] drm/ttm: provide default page protection for UML From: Johannes Berg To: Anton Ivanov , Randy Dunlap , linux-kernel@vger.kernel.org Cc: Thomas =?ISO-8859-1?Q?Hellstr=F6m?= , Christian =?ISO-8859-1?Q?K=F6nig?= , Huang Rui , dri-devel@lists.freedesktop.org, Jeff Dike , Richard Weinberger , linux-um@lists.infradead.org, David Airlie , Daniel Vetter Date: Thu, 02 Sep 2021 10:11:59 +0200 In-Reply-To: <347e4cb8-a7c5-9e1b-16bc-96805442d35b@cambridgegreys.com> References: <20210902020129.25952-1-rdunlap@infradead.org> <9faacbc8-3346-8033-5b4d-60543eae959e@cambridgegreys.com> <0887903c-483d-49c7-0d35-f59be2f85bac@cambridgegreys.com> <288a2d4dbcb1e6b0fbeff6da86569aa92df09202.camel@sipsolutions.net> <347e4cb8-a7c5-9e1b-16bc-96805442d35b@cambridgegreys.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-09-02 at 09:10 +0100, Anton Ivanov wrote: > On 02/09/2021 08:43, Johannes Berg wrote: > > On Thu, 2021-09-02 at 07:19 +0100, Anton Ivanov wrote: > > > > > > > > > > I have a question though - why all of DRM is not !UML in config. Not > > > > > like we can use them. > > > > > > > > I have no idea about that. > > > > Hopefully one of the (other) UML maintainers can answer you. > > > > > > Touche. > > > > > > We will discuss that and possibly push a patch to !UML that part of the > > > tree. IMHO it is not applicable. > > > > As I just said on the other patch, all of this is fallout from my commit > > 68f5d3f3b654 ("um: add PCI over virtio emulation driver") which is the > > first time that you could have PCI on UML. > > > > Without having checked, in this particular case it's probably something > > like > > > > depends on PCI && X86_64 > > > > as we've seen in other drivers (idxd, ioat). > > > > The biggest problem is probably that UML internally uses X86_64 > > (arch/x86/um/Kconfig), which is ... unexpected ... since CONFIG_X86_64 > > is typically considered the ARCH, and now the ARCH is actually um. > > > > I think we can just fix that and get rid of this entire class of > > problems? Something like > > > > https://p.sipsolutions.net/fbac19d86637e286.txt > > Good idea. I suspect that DRM will not be the only thing to pop up out > of this so we might as well fix it "at the top". Yeah I sent like a handful of similar patches ... I'll send that patch out in a minute, just writing a reasonable commit log. Seems to build & work fine for me. johannes