From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1430721AbdDYNUP (ORCPT ); Tue, 25 Apr 2017 09:20:15 -0400 Received: from pegasos-out.vodafone.de ([80.84.1.38]:56902 "EHLO pegasos-out.vodafone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1429534AbdDYNUF (ORCPT ); Tue, 25 Apr 2017 09:20:05 -0400 X-Spam-Flag: NO X-Spam-Score: -0.044 Authentication-Results: rohrpostix1.prod.vfnet.de (amavisd-new); dkim=pass header.i=@vodafone.de X-DKIM: OpenDKIM Filter v2.6.8 pegasos-out.vodafone.de 838E3261AAD From: =?UTF-8?q?Christian=20K=C3=B6nig?= To: helgaas@kernel.org, linux-pci@vger.kernel.org, dri-devel@lists.freedesktop.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Resizeable PCI BAR support V4 Date: Tue, 25 Apr 2017 15:19:50 +0200 Message-Id: <1493126394-1239-1-git-send-email-deathsimple@vodafone.de> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi everyone, This is the fourth incarnation of this set of patches. It enables device drivers to resize and most likely also relocate the PCI BAR of devices they manage to allow the CPU to access all of the device local memory at once. This is very useful for GFX device drivers where the default PCI BAR is only about 256MB in size for compatibility reasons, but the device easily have multiple gigabyte of local memory. Some changes since V3: 1. A lot of minor style cleanups. 2. Make internal functions for changing BARs directly private to the PCI subsystem. 3. Fail if any BAR is still in use when we try to change it. 4. Handle intermediate bridges as well. 5. Print some more messages when changing something. Please review and/or comment, Christian.