From mboxrd@z Thu Jan 1 00:00:00 1970 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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 A56ACC48BE8 for ; Mon, 24 Jun 2019 04:27:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 885D5208CA for ; Mon, 24 Jun 2019 04:27:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726572AbfFXE1I (ORCPT ); Mon, 24 Jun 2019 00:27:08 -0400 Received: from gate.crashing.org ([63.228.1.57]:45188 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727009AbfFXE1I (ORCPT ); Mon, 24 Jun 2019 00:27:08 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x5O4R258012844; Sun, 23 Jun 2019 23:27:03 -0500 Message-ID: Subject: Question about call to pci_assign_unassigned_bus_resources in amdgpu From: Benjamin Herrenschmidt To: Christian =?ISO-8859-1?Q?K=F6nig?= Cc: Alex Deucher , linux-pci@vger.kernel.org Date: Mon, 24 Jun 2019 14:27:02 +1000 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Hi Christian ! While cleaning up & consolidating resource management code accross archs I stumbled upon this call to pci_assign_unassigned_bus_resources in amdgpu:amdgpu_device_resize_fb_bar() Why do you need this ? My understanding is that pci_resize_resource() will already be calling pci_reassign_bridge_resources() on the parent bridge which should have the same effect. Or am I missing something ? I'd like to remove that call if possible... Cheers, Ben.