From patchwork Thu Feb 4 16:58:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 12067861 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D739AC433E0 for ; Thu, 4 Feb 2021 17:00:05 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6DBBD64F6A for ; Thu, 4 Feb 2021 17:00:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6DBBD64F6A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=tKfWRFOjllmygo2V5eaRG2HLyF1jtuKnXSKPD3ik+6s=; b=SH6zWJdp55c8TM+3Lwy9ddr5D1 uhgNt4L8+zjcSRevJCXUiGfexIWYi0o8hffVjAUxRX/bLn0TsiegO/M82Bl9r0TTn1B3bNWwqxhrQ StjiAUp5KT73ypiig4wJ59K978iKaHy2QaY4s3xSFmOApn9j0PVhQT+bRmrh6/4uwJL9zqKwuzKAF GUncTtL2x1SXRP9/rRp47XF+RO+3kVfwfnL4ibLy3IuVKHw8jvj2MmAAvQoZRu8iBPX+9kuJZDMt4 MRuH8utzW8vOR5bo6tM7AnSR+olmU8aNl/uGGRqJ6uXdwi0yGty98JwPJyKI4fgb3tcgcPCThMtoJ 5R5uctLw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7hxt-0007eB-Ef; Thu, 04 Feb 2021 16:58:45 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7hxo-0007dF-FU for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2021 16:58:41 +0000 Received: by mail-wr1-x433.google.com with SMTP id m13so4320770wro.12 for ; Thu, 04 Feb 2021 08:58:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CSXClwte+EBaSfb73OT9a258Z0fuumQByG0sZ3xvY0o=; b=kF3mIgExZ6yqH4eVMQt6WD7DEfAMygEvJlEbz5Xto3mUv0YDv1L49BGJIm43dk9bU1 iXTPifKJP86J0pow9upJIpWRGPhVO1f2EMyxp18Untk7OSKOV1noZ4nOqj1K5+vZn89G y8rpqE5p8fJ2NUkDxK1tbqWLU3qx+6Ux/u9co= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CSXClwte+EBaSfb73OT9a258Z0fuumQByG0sZ3xvY0o=; b=kb5Gl7GqZmgIn0SpUpnf6PaPvoXiOKJRe8WDM4f+SQMMG/EYwFmXlWPEl+M0XkoAHZ VXFKoUmw3wozS3XkhQ09BmmB/aqIdz5rLzuaAy/vyp3WwMWSNVe0kGcm89xnIjFTlQxZ K7s97ew7HSnDg+Y8827+aRDw2Zm8HFx09/xR3LJK1xxp1PhEQLS+TheWY2QDX2ZInRxW ZkXj5ptuoKbQZyLubCvVkRiUJ9+yOC1G2PxH+uHl1LsRruslQzab1lheC2Wco+LTtq3D WF82UdlJ7x9F7NlnKX+fExp7Gyujfr3FX4Axw85OHy344eALo4BcKuobEdSTb+2jB6Od vvhA== X-Gm-Message-State: AOAM533dPagwJn0+LF+7Q5rou6v3IaxhoNSsfXPFGV1yyiwFBtRD4uBX vAu5p+aPJWqCnf+nBHwrQ+Piiw== X-Google-Smtp-Source: ABdhPJzQxOtjiSlI6HeHAkG205a5zhJRcBC5cKGPxy6h1VeNvxXZzxclR5CwPfNihVa2lXiEvFOWdA== X-Received: by 2002:adf:decb:: with SMTP id i11mr313945wrn.78.1612457918861; Thu, 04 Feb 2021 08:58:38 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id i64sm6700187wmi.19.2021.02.04.08.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 08:58:38 -0800 (PST) From: Daniel Vetter To: LKML Subject: [PATCH 0/2] pci sysfs file iomem revoke support Date: Thu, 4 Feb 2021 17:58:29 +0100 Message-Id: <20210204165831.2703772-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210204_115840_557428_82D0F341 X-CRM114-Status: GOOD ( 13.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Rothwell , linux-samsung-soc@vger.kernel.org, Jan Kara , Kees Cook , Greg Kroah-Hartman , Daniel Vetter , linux-pci@vger.kernel.org, DRI Development , linux-mm@kvack.org, Jason Gunthorpe , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , John Hubbard , Bjorn Helgaas , Dan Williams , Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This is a revised version of patch 12 from my series to lock down some follow_pfn vs VM_SPECIAL races: https://lore.kernel.org/dri-devel/CAKwvOdnSrsnTgPEuQJyaOTSkTP2dR9208Y66HQG_h1e2LKfqtw@mail.gmail.com/ Stephen reported an issue on HAVE_PCI_LEGACY platforms which this patch set tries to address. Previous patches are all still in linux-next. Stephen, would be awesome if you can give this a spin. Björn/Greg, review on the first patch is needed, I think that's the cleanest approach from all the options I discussed with Greg in this thread: https://lore.kernel.org/dri-devel/CAKMK7uGrdDrbtj0OyzqQc0CGrQwc2F3tFJU9vLfm2jjufAZ5YQ@mail.gmail.com/ Cheers, Daniel Cc: Stephen Rothwell Cc: Jason Gunthorpe Cc: Kees Cook Cc: Dan Williams Cc: Andrew Morton Cc: John Hubbard Cc: Jérôme Glisse Cc: Jan Kara Cc: Dan Williams Cc: Greg Kroah-Hartman Cc: linux-mm@kvack.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Cc: linux-media@vger.kernel.org Cc: Bjorn Helgaas Cc: linux-pci@vger.kernel.org Daniel Vetter (2): PCI: also set up legacy files only after sysfs init PCI: Revoke mappings like devmem drivers/pci/pci-sysfs.c | 11 +++++++++++ drivers/pci/proc.c | 1 + 2 files changed, 12 insertions(+)