Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758722Ab3IBOhG (ORCPT ); Mon, 2 Sep 2013 10:37:06 -0400 Received: from mail-db9lp0253.outbound.messaging.microsoft.com ([213.199.154.253]:57914 "EHLO db9outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756399Ab3IBOhE convert rfc822-to-8bit (ORCPT ); Mon, 2 Sep 2013 10:37:04 -0400 X-Forefront-Antispam-Report: CIP:165.204.84.222;KIP:(null);UIP:(null);IPV:NLI;H:atltwp02.amd.com;RD:none;EFVD:NLI X-SpamScore: -5 X-BigFish: VPS-5(zz9371I542I1432I4015I14ffIzz1f42h208ch1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz1de098h8275dh1de097hz2dh839h944hd25hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h14ddh1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h1ad9h1b0ah1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1fe8h1ff5h1155h) X-WSS-ID: 0MSI5RL-08-AKI-02 X-M-MSG: From: "Deucher, Alexander" To: Stephen Rothwell , Dave Airlie CC: "linux-next@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: linux-next: build failure after merge of the final tree (drm tree related) Thread-Topic: linux-next: build failure after merge of the final tree (drm tree related) Thread-Index: AQHOp7tTrcrHOvn1Gk2/qwQhxtRRHZmygyUA Date: Mon, 2 Sep 2013 14:36:51 +0000 Message-ID: References: <20130902190123.e3cd30ac95fcefa1aaa95c8b@canb.auug.org.au> In-Reply-To: <20130902190123.e3cd30ac95fcefa1aaa95c8b@canb.auug.org.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.96.14] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: amd.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3233 Lines: 104 > -----Original Message----- > From: Stephen Rothwell [mailto:sfr@canb.auug.org.au] > Sent: Monday, September 02, 2013 5:01 AM > To: Dave Airlie > Cc: linux-next@vger.kernel.org; linux-kernel@vger.kernel.org; Deucher, > Alexander > Subject: linux-next: build failure after merge of the final tree (drm tree > related) > > Hi all, > > After merging the final tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/gpu/drm/radeon/ci_dpm.c: In function > 'ci_request_link_speed_change_before_state_change': > drivers/gpu/drm/radeon/ci_dpm.c:4212:4: error: implicit declaration of > function 'radeon_acpi_pcie_performance_request' [-Werror=implicit- > function-declaration] > if (radeon_acpi_pcie_performance_request(rdev, > PCIE_PERF_REQ_PECI_GEN3, false) == 0) > ^ > > Caused by commit cc8dbbb4f62a ("drm/radeon: add dpm support for CI > dGPUs > (v2)"). These calls need protecting with CONFIG_ACPI (like is done in > cypress_dpm.c, I guess). > > I tried reverting commit 9c725e5bcdae ("Merge branch 'drm-next-3.12' of > git://people.freedesktop.org/~agd5f/linux into drm-next") but that failed > because that branch is based on v3.11-rc7 (!) which is later than the > base of the drm tree (v3.11-rc3). :-( > > I added this fix up patch for today (it may be wrong, butfixes the build > failure). > > From: Stephen Rothwell > Date: Mon, 2 Sep 2013 18:57:41 +1000 > Subject: [PATCH] drm/radeon: protect ACPI calls with CONFIG_ACPI > > Signed-off-by: Stephen Rothwell The patch looks fine. Thanks, Alex > --- > drivers/gpu/drm/radeon/ci_dpm.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/radeon/ci_dpm.c > b/drivers/gpu/drm/radeon/ci_dpm.c > index 916630f..3cce533 100644 > --- a/drivers/gpu/drm/radeon/ci_dpm.c > +++ b/drivers/gpu/drm/radeon/ci_dpm.c > @@ -4208,6 +4208,7 @@ static void > ci_request_link_speed_change_before_state_change(struct radeon_devic > pi->pspp_notify_required = false; > if (target_link_speed > current_link_speed) { > switch (target_link_speed) { > +#ifdef CONFIG_ACPI > case RADEON_PCIE_GEN3: > if (radeon_acpi_pcie_performance_request(rdev, > PCIE_PERF_REQ_PECI_GEN3, false) == 0) > break; > @@ -4217,6 +4218,7 @@ static void > ci_request_link_speed_change_before_state_change(struct radeon_devic > case RADEON_PCIE_GEN2: > if (radeon_acpi_pcie_performance_request(rdev, > PCIE_PERF_REQ_PECI_GEN2, false) == 0) > break; > +#endif > default: > pi->force_pcie_gen = > ci_get_current_pcie_speed(rdev); > break; > @@ -4248,7 +4250,9 @@ static void > ci_notify_link_speed_change_after_state_change(struct radeon_device > (ci_get_current_pcie_speed(rdev) > 0)) > return; > > +#ifdef CONFIG_ACPI > radeon_acpi_pcie_performance_request(rdev, request, > false); > +#endif > } > } > > -- > 1.8.4.rc3 > > -- > Cheers, > Stephen Rothwell sfr@canb.auug.org.au -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/