Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp154732pxb; Thu, 2 Sep 2021 00:46:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeqRqqZMSQdXE2e5zqaYxg9jMHYDl+9Qcfa8+pdOZeSaeEYQL8T8H2mk8YJvcIkGmtJjeq X-Received: by 2002:a05:6402:1cbc:: with SMTP id cz28mr2209966edb.370.1630568782218; Thu, 02 Sep 2021 00:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630568782; cv=none; d=google.com; s=arc-20160816; b=fNaUK5dsXwwjfeqCogrTV+W3KtY2fNBKTmvCS+iCjx8rTCkAO2MzWYErBPNUuDrbvl eM+g2KWx2MMGY87c6124pW8D0ksYKVqluTzjTXX2Z6etkU4JDoz9UmtUc44Kb2FLc+R2 P0buccaDZ3zD4egwf3BVlH282z+NnO4Sl/oaGNEv53lKrKjbrZkqT38iS2DKVHeGnxj0 dJoLlIHuBqk717j89WL7VRy/QoNmGdxyFc/EmU9j6MBjVzDNYeLkaxmhvDa2DwotckPx YPxcDxESD0BpR1FjDUYqBSRIR6+QtEtuaTfSmsR/bqksFamsFnsirfYOeB4GYH2ySxbL cF1Q== 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=cPw2UIImbh1rU9+9v0uyD9QdNxdfxbeQEJ1fObWlMwA=; b=xJuqlKeKkVISxlfMDzrgIP8G6TF7qQIEqGgyPEsA85unzIXojXoEP6UbOXlKm04aLO kKn6ORC6eTjZ64BL5HhA0CmDtCNlCIepVcHl2lEuezuY7uh9kyA8iJemyhm1kBmOzhsG 62+OJykdU3SgwHChWeH5Y23QBpJvmKGl19YTpx/et3jsIapzx+C8ESxxTMu24UUlaubr OydAHv9Ixa5RtJH/JQr9HCj/AR0/VCGao5ecETGwT0a8RpYsxtCctV0l75PcKoi3fj2S pQ7geSV3DQ9aqrUW/1dSJJcILSkputNqZAStT4XyeQRfd0rlWvitNHYPLEVKfIOM0jt4 Fo/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=uU458lEN; 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 h7si1270676ede.265.2021.09.02.00.45.51; Thu, 02 Sep 2021 00:46:22 -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=uU458lEN; 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 S243737AbhIBHow (ORCPT + 99 others); Thu, 2 Sep 2021 03:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243361AbhIBHov (ORCPT ); Thu, 2 Sep 2021 03:44:51 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0767C061575 for ; Thu, 2 Sep 2021 00:43:53 -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=cPw2UIImbh1rU9+9v0uyD9QdNxdfxbeQEJ1fObWlMwA=; t=1630568633; x=1631778233; b=uU458lENfMInptjHlatCNN+T8vTYi7iJ0iUsoO9KCANDXJA 5ZSo5E6weTFpcrZ+wCjjgyGWtUy7dD+Qu05C0slN6KYgbgK5q2mwbEeCQc5Q/9GST4VcVKHCsjluE 1Nz4lQe625YM7KNIF4ZGlauHzk7Sjj76mfH4ptcpgfQDMLNqe9YX2ZqlDk/kQRGXhroGD2lI/1Z1V SpzfFuSb1adapuNtv+wEUYCj2sXcWdfN0ygkapOpR1PCX6Y3wAemC4EpylbGlQlie3yQqwyKs3ArV 2fAVQK8zsh6RNVkvyHqXAM1nEg8Gc4XTzUTNEyK5WWEs/6LEM6RlJhr8JzwXNVKg==; 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 1mLhNn-001W6C-8D; Thu, 02 Sep 2021 09:43:35 +0200 Message-ID: <288a2d4dbcb1e6b0fbeff6da86569aa92df09202.camel@sipsolutions.net> 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 09:43:33 +0200 In-Reply-To: <0887903c-483d-49c7-0d35-f59be2f85bac@cambridgegreys.com> References: <20210902020129.25952-1-rdunlap@infradead.org> <9faacbc8-3346-8033-5b4d-60543eae959e@cambridgegreys.com> <0887903c-483d-49c7-0d35-f59be2f85bac@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 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 johannes