Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4755000iob; Mon, 9 May 2022 00:21:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx83EIRH0wl44B6L9DWFwXqULFm+Ljxn9aYht28tuy/dbqCUsygneS5LfwaK9+VS1ZnZrxu X-Received: by 2002:a17:902:6bc9:b0:158:a0d3:d080 with SMTP id m9-20020a1709026bc900b00158a0d3d080mr15262743plt.24.1652080906309; Mon, 09 May 2022 00:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652080906; cv=none; d=google.com; s=arc-20160816; b=BpATfL/5xWgX5exCT3wBTmYqapfgIVcutdK7Vr8/GRD+Ar4Z9sAcXTsHrgwsp6FVtm 8PLgvN9iCBn7m9UcermnjZ51GuOCPJ7EDRu8kos+tHz3le6Tj9KSe6QhuggVqjJW3UXL FEijdVyWbXY5Lv10JSe7NpIgFBSGwZETLBG83UKtrYf2Cf7rfOE/afnBInZAIu85hIIp l9pqEX1/EawwhT3W2EBi8Qfg14Ooxh904I2r73U5odSuQGHIJO+mbHDUo1j5fgIyuRo0 W8eJE8InFQbDsKHe/ksg/VOp+GHWsK2aTRtQs9IDAsy9udt5HAqDD6q5vG8Vc48EvENS N5Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IVyzORSKT8eaHP7gPPygWOO58G/gzdrL4ii4heJM7tI=; b=BHk3wLwJJ5Z/hzymNHP1isNUiipu5mR5MhLQkeA+yOSmvzvhdRnum1tU4YB7nky4qw 8Vu63TiVLTlBRazEfdYgMjAAiy1ibrOBitv+JMIWIiEwzoxOGFqWQ0DxjufUfhIZsaOL nToAQ31tmSIBBUsYtu2nf/VYpiEG4E+3V9PWKDQPXLDlRaKTXTPW7yPwYPCbi3uVI29g KbUfJzEOgdGg1MBFvZ8zjwpwF5+zRbtmvPQgIEG7GdyNwvvnW8W+T7cCh6MrSRDMMpns gzoQAS9Pvizh9JReEZPAPCZOJvesL7Q01CZ0TAwBjgANWz5JKZRD08m3V8oGIMp5gpyf 4kCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K+IVz58A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l185-20020a6391c2000000b003c16c84a15csi12947704pge.188.2022.05.09.00.21.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 00:21:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K+IVz58A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A0461756A2; Mon, 9 May 2022 00:18:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384034AbiEESup (ORCPT + 99 others); Thu, 5 May 2022 14:50:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383956AbiEESuh (ORCPT ); Thu, 5 May 2022 14:50:37 -0400 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CA7526C9; Thu, 5 May 2022 11:46:37 -0700 (PDT) Received: by mail-oi1-x234.google.com with SMTP id e189so5234322oia.8; Thu, 05 May 2022 11:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IVyzORSKT8eaHP7gPPygWOO58G/gzdrL4ii4heJM7tI=; b=K+IVz58Ahcniss6cK41cHBoVkHAjyaw/E23zsZCOJH70LfVR1q8aB/5wNZQMV2eNFn To8MZKFtIW9oFiGl1qKZCxvuJa01Do3hTDtoL2EfnCMG3LkT1Ao3cssbEOaakeeA5KT+ FGs55BQSeMpB1MCf/7Msf/lIrEoualk5eAcQ3q8KqVL41+oGcjQo+iHDHvvoOsed0AEu YynCi0q7lk6sqGQ5pLM+cGvCDP/LVD0jjNjV6tXtFVfl1daT5plE+x5ejoXEdXDX0A0Y FIqL2zA3YRAObmRWJ+TU4SCRy0MTuY5SfLXrpi0OXLmXP+ESO4idYAMEc5rbr+66bGt7 HT9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IVyzORSKT8eaHP7gPPygWOO58G/gzdrL4ii4heJM7tI=; b=B3LfAzhg1QiprvvkXb12Sj9WNQOlmCskL6YwApRI6CC6UEK6CZmzMoHkIDQYbywAWK SUJSMBIOWzz43tNoNZkEKdmh9NoWp8KpKWUpXj6wQw2PUqAzNVIPHMV2KcQ8G/OqA/OR jrn4OWmiH1nJlMBJge0U4fHU6M2tMRUkTShGPVHNo2Kb7Fwv+G8WAJwExS0/zi7hWfgc 3JhH3bPfPXvZTcr7u7OvBQu6rgW5s6X3APDA0JN5Xe/u2UfwcU9y0u8bwzR7iBXBCC8V 4epqwzoUVOtgDbbbmGBAuN2N3fzC+vdBMR4a7T7dtuvssPqR1FZsEY6BGDtDP+IYW/LO Q1VA== X-Gm-Message-State: AOAM530aLSmsSKtP77KieZDynCRSMweDF+NFzsJBmxGPSr4+rJbrs+FR QHhpvDPh8M9bccs5Zu4YL0EWTIU1jaXFw+4Od0g= X-Received: by 2002:a05:6808:f8d:b0:325:1e81:ffe5 with SMTP id o13-20020a0568080f8d00b003251e81ffe5mr3220346oiw.253.1651776396452; Thu, 05 May 2022 11:46:36 -0700 (PDT) MIME-Version: 1.0 References: <20220505194717.065db7ab@canb.auug.org.au> In-Reply-To: From: Alex Deucher Date: Thu, 5 May 2022 14:46:25 -0400 Message-ID: Subject: Re: linux-next: build failure after merge of the amdgpu tree To: Nathan Chancellor Cc: Stephen Rothwell , Jack Xiao , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 5, 2022 at 2:12 PM Nathan Chancellor wrote: > > Hi Stephen, > > On Thu, May 05, 2022 at 07:47:17PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > After merging the amdgpu tree, today's linux-next build (powerpc > > allyesconfig) failed like this: > > > > > > > > > Caused by commit > > > > 028c3fb37e70 ("drm/amdgpu/mes11: initiate mes v11 support") > > > > This build has __BIG_ENDIAN set. > > > > I have applied the following patch for today. > > > > From: Stephen Rothwell > > Date: Thu, 5 May 2022 19:14:25 +1000 > > Subject: [PATCH] mark CONFIG_DRM_AMDGPU as depending on CONFIG_CPU_LITTLE_ENDIAN > > > > Signed-off-by: Stephen Rothwell > > --- > > drivers/gpu/drm/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig > > index e88c497fa010..2aaa9ef1168d 100644 > > --- a/drivers/gpu/drm/Kconfig > > +++ b/drivers/gpu/drm/Kconfig > > @@ -244,6 +244,7 @@ source "drivers/gpu/drm/radeon/Kconfig" > > config DRM_AMDGPU > > tristate "AMD GPU" > > depends on DRM && PCI && MMU > > + depends on CPU_LITTLE_ENDIAN > > select FW_LOADER > > select DRM_DISPLAY_DP_HELPER > > select DRM_DISPLAY_HDMI_HELPER > > -- > > 2.35.1 > > This fixup makes CONFIG_DRM_AMDGPU unselectable on any architecture that > does not have CONFIG_CPU_LITTLE_ENDIAN, such as x86_64. I was rather > surprised when my AMD test system did not reach the login screen and > there were no error messages in dmesg, only to find that > CONFIG_DRM_AMDGPU had disappeared from my build. > > If this is not fixed by the time you do next-20220506, would you > consider swapping the logic like so? This should allow all implicitly > little endian architectures to work (at least, I tested it with x86_64), > while preventing errors for CONFIG_CPU_BIG_ENDIAN configurations. This is fixed. Will push out a new branch shortly. Alex > > Cheers, > Nathan > > diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig > index 2aaa9ef1168d..a57843733a96 100644 > --- a/drivers/gpu/drm/Kconfig > +++ b/drivers/gpu/drm/Kconfig > @@ -244,7 +244,7 @@ source "drivers/gpu/drm/radeon/Kconfig" > config DRM_AMDGPU > tristate "AMD GPU" > depends on DRM && PCI && MMU > - depends on CPU_LITTLE_ENDIAN > + depends on !CPU_BIG_ENDIAN > select FW_LOADER > select DRM_DISPLAY_DP_HELPER > select DRM_DISPLAY_HDMI_HELPER