Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp648984pxb; Sat, 11 Sep 2021 16:56:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJXFmfHmEMjKQwv/D6fklZbLwWZUV53/TlX6f12H8v4Y3PieTGnvJHPwqg06Zq61CjUtb3 X-Received: by 2002:a05:6638:268f:: with SMTP id o15mr1919743jat.94.1631404596647; Sat, 11 Sep 2021 16:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631404596; cv=none; d=google.com; s=arc-20160816; b=WIgsIGa3eo2HKKRLYv3tCtiCps6uIU5aWQOmm8Yp7FpqtNSqYfC9N4L59BhIAscUcC 5VwCyfFSiVovAqC5bZKeeOkxJaJrAbaDzo/JUe2j/BbsSUXU0r5+Qt/uobx7UDD0cCVO tH9Ggd+UkDgcp4rJjsHmgyq93RQm5ftViegS/iBiSJgjZ/jSuR8Y1XKWVp+3xn+sJ2Kg V5mTGVMOB0i63QwvsmNptdvJlLkNkSnPau0y1iPcNIBwCKddl2LbpFKFtwGwz6ZQsU0g 85V4NepLm3wact3rVIa1hxFNJpskSWjt93pc1fxDsE23lYehyN10OpUY7Qx404st8orp zfvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XhzTiX0DZYV1X5ckSDoJZp4U7aZCZRTdTtc5atz14SI=; b=y1CAJ82VYCKR0SnwqlT1vmPq9OntQqgjeB51nGi95YHSXbRF/aPYjNfMJOM+Uu2z2I +sdq6vnd9MzwojlJZtn8VkGKIz7oxW26T755gbQ9PkuGBt3go4/yFA1az8QGXxrv4L7q N/0LRW7ipPUk22JMh7D3ZF946GrArNTnUipLtCDGDFCeafdx0mAy0xzK97N88RbyjHv7 VV+dEM5hlAfKoO0grgM5HXXgg1YQjqRllmz56IkwhUOSoYduH+XsJeR8JIAvnrrj5d56 v1g9tD7GMXZ79DUmnI4IPPY+BBBhy9cSbZS6fJm29sn+9Ioe5kzE6lpYv7ZmL+wgPDjo GajQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HIYOtFgY; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si2292733ioc.55.2021.09.11.16.56.25; Sat, 11 Sep 2021 16:56:36 -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=@redhat.com header.s=mimecast20190719 header.b=HIYOtFgY; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234668AbhIKX4A (ORCPT + 99 others); Sat, 11 Sep 2021 19:56:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:48057 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234577AbhIKXz7 (ORCPT ); Sat, 11 Sep 2021 19:55:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631404485; 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=XhzTiX0DZYV1X5ckSDoJZp4U7aZCZRTdTtc5atz14SI=; b=HIYOtFgY4HxMNyU0nzLti5A8vG2pVu6p4v3N2hqr9VCqnSjvaEgH03c0xLylchB2XX6JhZ MZja69E6+/mBnkFFoaH07qfH2BNOXewJXF/fF6FcQeepTpcoGIs0L1KGN//6havxYew7HX 7hUkBeY6or6zno1I58JXf2KSUB2lf60= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-466-kQg2PjqQNSOxsxPY2L0QTw-1; Sat, 11 Sep 2021 19:54:44 -0400 X-MC-Unique: kQg2PjqQNSOxsxPY2L0QTw-1 Received: by mail-ej1-f71.google.com with SMTP id q15-20020a17090622cf00b005c42d287e6aso2258036eja.18 for ; Sat, 11 Sep 2021 16:54:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XhzTiX0DZYV1X5ckSDoJZp4U7aZCZRTdTtc5atz14SI=; b=rwmQI8EwCOgSlQbnxyEKYN6vh4TDyUfptJcT/nCEG1+JvNXdTztmdL6eM7bgVdMSl3 dJDhnDE7vGQdxlNVxc6cKQl4FJhny5/EIw8OqHzUGbC80xVSdgXDK2F81XuO7ko/3NQc e8FbV5mGLcGJS0wRdXOQtEIo1Xl/AfIX7HpIRYPPrZZbS+xUwPFN+NL2W3bkeEea96l4 EXqcsIdw9lrqV81qMcDBDTmGdqpTCJOcz8ORJBaJ47I4YbnLVP31qXdJDQOLI9AZ+mx7 Pnd8W0vJ8tnCqX9ONQtT/0zk2I6VTFWbEtjcypDONOBnUjUM752bm6f5je1XTuhOyRv/ 9NJQ== X-Gm-Message-State: AOAM5309JUyy2fdxE0MPmBmE24TrTsh2ncQuxSNmssog3cGSl4nQUdxM N6i/+N3aFFU9j5BphF08AekiuPEqQIpytTT1RO1/byWRxiZ/0RhwX//TxVqP20BxGlvcpUY//IK uUn3iRpAciF03gVJR9NpF4lJX X-Received: by 2002:a17:906:5855:: with SMTP id h21mr4944811ejs.230.1631404482988; Sat, 11 Sep 2021 16:54:42 -0700 (PDT) X-Received: by 2002:a17:906:5855:: with SMTP id h21mr4944788ejs.230.1631404482774; Sat, 11 Sep 2021 16:54:42 -0700 (PDT) Received: from redhat.com ([2.55.27.174]) by smtp.gmail.com with ESMTPSA id n13sm1309780ejk.97.2021.09.11.16.54.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Sep 2021 16:54:41 -0700 (PDT) Date: Sat, 11 Sep 2021 19:54:36 -0400 From: "Michael S. Tsirkin" To: Andi Kleen Cc: Dan Williams , "Kuppuswamy, Sathyanarayanan" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Bjorn Helgaas , Richard Henderson , Thomas Bogendoerfer , James E J Bottomley , Helge Deller , "David S . Miller" , Arnd Bergmann , Jonathan Corbet , Peter H Anvin , Dave Hansen , Tony Luck , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , X86 ML , Linux Kernel Mailing List , Linux PCI , linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch , Linux Doc Mailing List , virtualization@lists.linux-foundation.org Subject: Re: [PATCH v4 11/15] pci: Add pci_iomap_shared{,_range} Message-ID: <20210911195006-mutt-send-email-mst@kernel.org> References: <20210824053830-mutt-send-email-mst@kernel.org> <20210829112105-mutt-send-email-mst@kernel.org> <09b340dd-c8a8-689c-4dad-4fe0e36d39ae@linux.intel.com> <20210829181635-mutt-send-email-mst@kernel.org> <3a88a255-a528-b00a-912b-e71198d5f58f@linux.intel.com> <20210830163723-mutt-send-email-mst@kernel.org> <69fc30f4-e3e2-add7-ec13-4db3b9cc0cbd@linux.intel.com> <20210910054044-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 09:34:45AM -0700, Andi Kleen wrote: > > > that's why > > > an extra level of defense of ioremap opt-in is useful. > > OK even assuming this, why is pci_iomap opt-in useful? > > That never happens before probe - there's simply no pci_device then. > > > Hmm, yes that's true. I guess we can make it default to opt-in for > pci_iomap. > > It only really matters for device less ioremaps. OK. And same thing for other things with device, such as devm_platform_ioremap_resource. If we agree on all that, this will basically remove virtio changes from the picture ;) -- MST