Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp597869ybv; Fri, 7 Feb 2020 05:13:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyxCK16yaET/DsSNY6SRFYtz18ZpqpQw4xPtEIkPzHDu3dHjEiORQFBChcyPOn+bL//sA85 X-Received: by 2002:a9d:7f16:: with SMTP id j22mr2645964otq.256.1581081195880; Fri, 07 Feb 2020 05:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581081195; cv=none; d=google.com; s=arc-20160816; b=ksWXS+G7PIjZwkNei8V9juSzo3V3JxJbDT3TneGZrPwwiLsgHiPc4jqi1mEVSWeQ8D jrE27rbI9anamrRwyDmOU6ei2YxmbyT//ZZGQTdWr99KaguuaruYWMtm8gk/pJ4QzNpz 1KFqse+XaI4Kz87eMPxI3LqARaAb0+BguQxvz5ayTSaTi1m3tFxTY6Kb50mPWbaksluw YldwHw5cfThY9DoenDGCwrKHV1HT6HfWEPVZoGeMHzxJzm+S0bmNdqVvvyzyQEsm8V6P C5dV9c3fLMinrReBBMkl6rSMs1Jfl4HL8rTFexZzcfb495MoHtfPeSDM5gbG7qP5K+ZW +1yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hD8Oq4ABQ3nykjPDLFdYViQIYOpl6f1eer7j6S8/d54=; b=wozwBiQs0IN0gFZYPHX9hdCptD+2ebMxfz9rp7f+dFcImJhFBIiVWWQwImAxQhqjSa 02BaKkO3nAfj7N6zOVcHaltxxnFwUzbOsaZz73q/4YHGF4ettIwaXuOVjYFSVXYcmUIE M+QvIO3GPBFCB5ktx0H9AJ1suIRRQv3Y5mie4F57zdNrP57XViXgWjOH5KS/Ryca0Rlu svFpon0zP7OcGOpRgs4Oy8u8T8Dm+b4BBxI1pzSUjVFC+kZJtIKKs6mt7hnyqcerMd28 xWGp1dzL6D2pO92V2MA4nJew1wrEQjGbkiGjPjZDNfcIiWe+TwkXcjE2+47G+XCgB47P tNHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t12si1510483otm.224.2020.02.07.05.13.02; Fri, 07 Feb 2020 05:13:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726915AbgBGNMG (ORCPT + 99 others); Fri, 7 Feb 2020 08:12:06 -0500 Received: from mga03.intel.com ([134.134.136.65]:14474 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbgBGNMG (ORCPT ); Fri, 7 Feb 2020 08:12:06 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Feb 2020 05:12:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,413,1574150400"; d="scan'208";a="225551123" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga007.fm.intel.com with SMTP; 07 Feb 2020 05:12:01 -0800 Received: by stinkbox (sSMTP sendmail emulation); Fri, 07 Feb 2020 15:12:01 +0200 Date: Fri, 7 Feb 2020 15:12:01 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Larry Finger Cc: Tom Anderson , Hans Verkuil , Manasi Navare , LKML Subject: Re: Error building v5.5-git on PowerPC32 - bisected to commit 7befe621ff81 Message-ID: <20200207131201.GX13686@intel.com> References: <0fb64c98-57c2-b988-051c-6ba0e460ad37@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0fb64c98-57c2-b988-051c-6ba0e460ad37@lwfinger.net> X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 06, 2020 at 04:46:52PM -0600, Larry Finger wrote: > When building post V5.5 on my PowerBook G4 Aluminum, the build failed with the > following error: It shouldn't be in 5.5 There's a fix queued https://cgit.freedesktop.org/drm-misc/commit/?h=drm-misc-next-fixes&id=e1cf35b94c5fd122a8780587559fc6da9fc2dd12 Does that work for you? > > drivers/gpu/drm/drm_edid.c: In function ‘cea_mode_alternate_timings’: > drivers/gpu/drm/drm_edid.c:3275:2: error: call to ‘__compiletime_assert_3282’ > declared with attribute error: BUILD_BUG_ON failed: cea_mode_for_vic(8)->vtotal > != 262 || cea_mode_for_vic(9)->vtotal != 262 || cea_mode_for_vic(12)->vtotal != > 262 || cea_mode_for_vic(13)->vtotal != 262 || cea_mode_for_vic(23)->vtotal != > 312 || cea_mode_for_vic(24)->vtotal != 312 || cea_mode_for_vic(27)->vtotal != > 312 || cea_mode_for_vic(28)->vtotal != 312 > > This error was bisected to commit 7befe621ff81 ("drm/edid: Abstract away > cea_edid_modes[]"). > > This problem is clearly a problem with the gcc compiler on the box, namely gcc > (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3. I had no success finding why the > attributes were wrong, and finally settled on the following hack: > > diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c > index 99769d6c9f84..062bbe2b254a 100644 > --- a/drivers/gpu/drm/drm_edid.c > +++ b/drivers/gpu/drm/drm_edid.c > @@ -3272,6 +3272,7 @@ cea_mode_alternate_timings(u8 vic, struct drm_display_mode > *mode) > * get the other variants by simply increasing the > * vertical front porch length. > */ > +#ifndef CONFIG_PPC32 > BUILD_BUG_ON(cea_mode_for_vic(8)->vtotal != 262 || > cea_mode_for_vic(9)->vtotal != 262 || > cea_mode_for_vic(12)->vtotal != 262 || > @@ -3280,6 +3281,7 @@ cea_mode_alternate_timings(u8 vic, struct drm_display_mode > *mode) > cea_mode_for_vic(24)->vtotal != 312 || > cea_mode_for_vic(27)->vtotal != 312 || > cea_mode_for_vic(28)->vtotal != 312); > +#endif > > if (((vic == 8 || vic == 9 || > vic == 12 || vic == 13) && mode->vtotal < 263) || > > Disabling the build check allows me to build and test the post v5.5 versions. > > Larry -- Ville Syrjälä Intel