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: 12067879 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=-13.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 2FB46C433E6 for ; Thu, 4 Feb 2021 17:00:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 02D2764F6A for ; Thu, 4 Feb 2021 17:00:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238257AbhBDQ7p (ORCPT ); Thu, 4 Feb 2021 11:59:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238272AbhBDQ7U (ORCPT ); Thu, 4 Feb 2021 11:59:20 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 346F2C06178B for ; Thu, 4 Feb 2021 08:58:40 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id c12so4338155wrc.7 for ; Thu, 04 Feb 2021 08:58:40 -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=AopG+O5gQFvqdp+ysotJAahpfHCEyQtMj+UYLKX2t/t71iTHCQpazWYgeGpJVE4uPV Y75VjZjF1B2S+hTgxn6y43ZejbixzTKPUSkSCAs8Ludk2Ivql44SRNY3qwhmnF5m5Ycz 6GciAXPLM2fBVSWazz9PRVw3FFh7kUt/HCxWjjH5QhGhO35WlmytlQCfUIHzQTF1aWIO oBMfAesP+O1ZHFBTW0mwF7k3SOVP9Mw/Mx8VfKfH8agPAhNKjFDlg85SHp8MKHAFVIJp fl9z9GOZREzSS/TkeCp9W+coqRz6OT2cic6oXvC86HljZSDNUYdMX6DRMG5rl/OdfaRl nitQ== X-Gm-Message-State: AOAM530JnIDK6bPbNnkPQ9ed4b6ey1USZ1qrSzZxdsY41uT2kmpsYNmd nE06Fq+2qvOd1r0hQFUK88I+zg== 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 Cc: DRI Development , Daniel Vetter , Stephen Rothwell , Jason Gunthorpe , Kees Cook , Dan Williams , Andrew Morton , John Hubbard , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , Jan Kara , Greg Kroah-Hartman , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-media@vger.kernel.org, Bjorn Helgaas , linux-pci@vger.kernel.org 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 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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(+)