Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp266905ybt; Thu, 25 Jun 2020 21:56:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBV5sEZ4fc6dNfBzHTra6FklVwj+ayiSB7vH+iEKeqLwPK5WKJCZnlvTaADqYdNBPOkClr X-Received: by 2002:a17:907:42d5:: with SMTP id ng5mr1030378ejb.164.1593147369646; Thu, 25 Jun 2020 21:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593147369; cv=none; d=google.com; s=arc-20160816; b=NrqgFh6YHPVCXH0sLdcq6L645QTGpX4EDZRXe7h59RDSHIO2FiuN+B1DYiCswcaj10 gj4gsN+6ucUfrviaEw8ocL/3ov26JsoYYzc0jGiwdlrMHTSEE1UdmRmY/fElvQzuK+mt y7kAheuSu64rsSC+O78QdjcvrwTo2WQFHCv5a0fedHLueygVgWieGlAbdwPZkXKIc4LW hh3w997NxOLPXpyolyfmbg/UjEacrsz2ws2TJJy0ybqELNKSfnjK0jFXb5msmtotnqDm B1gLYXw9L2nnYcLyi2l7ZzcmsBq5HvOMACuv5mhvdi108gu5eiTvJmmYWsN1YkoR4MAW 5w2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:references :in-reply-to:cc:to:from; bh=UaohzrI8NS+Q/dwmZ43QUbjYwsymtFzG7/G1Br1NPCU=; b=d/rwyGjLmde3JyQVA2bZOQrVwCdhfL2B76e2pV4pYwCuM7Ec4yqh2BANn87FXdrrik uyhpPfV5DCt4OCh60N5LAStiAz274yncmI375D3puY8IHLAzNjpJokXZxQCpR5hlpcOd 26oQSEy7SMuZTG3w1sMIHfAUqvaWzAiskOebi+yHeYskjJ61thd4n1f6stWNRlZ436Mn QGDkayx0WzDYmk5aEszLK+83EgCXk+9cyVg3R+lQVbFqLaFzi5lIfKF6Ki4Cju3TP08y mUyKzSrrpCNqHjvr28dcUULRT66s0ypl3cUJgwr+JHEnLCtqszu1S2Y7GJwlLDHHBTGY HNBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be27si8170208edb.50.2020.06.25.21.55.46; Thu, 25 Jun 2020 21:56:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727009AbgFZEqA (ORCPT + 99 others); Fri, 26 Jun 2020 00:46:00 -0400 Received: from ozlabs.org ([203.11.71.1]:41671 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726984AbgFZEp6 (ORCPT ); Fri, 26 Jun 2020 00:45:58 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 49tPTc04WXz9sTC; Fri, 26 Jun 2020 14:45:55 +1000 (AEST) From: Michael Ellerman To: Paul Mackerras , Christophe Leroy , Benjamin Herrenschmidt , Albert Herranz , Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH] powerpc/fixmap: Fix FIX_EARLY_DEBUG_BASE when page size is 256k Message-Id: <159314672762.1150869.11958650760523739309.b4-ty@ellerman.id.au> Date: Fri, 26 Jun 2020 14:45:55 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Jun 2020 07:48:25 +0000 (UTC), Christophe Leroy wrote: > FIX_EARLY_DEBUG_BASE reserves a 128k area for debuging. > > When page size is 256k, the calculation results in a 0 number of > pages, leading to the following failure: > > CC arch/powerpc/kernel/asm-offsets.s > In file included from ./arch/powerpc/include/asm/nohash/32/pgtable.h:77:0, > from ./arch/powerpc/include/asm/nohash/pgtable.h:8, > from ./arch/powerpc/include/asm/pgtable.h:20, > from ./include/linux/pgtable.h:6, > from ./arch/powerpc/include/asm/kup.h:42, > from ./arch/powerpc/include/asm/uaccess.h:9, > from ./include/linux/uaccess.h:11, > from ./include/linux/crypto.h:21, > from ./include/crypto/hash.h:11, > from ./include/linux/uio.h:10, > from ./include/linux/socket.h:8, > from ./include/linux/compat.h:15, > from arch/powerpc/kernel/asm-offsets.c:14: > ./arch/powerpc/include/asm/fixmap.h:75:2: error: overflow in enumeration values > __end_of_permanent_fixed_addresses, > ^ > make[2]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1 > > [...] Applied to powerpc/next. [1/1] powerpc/fixmap: Fix FIX_EARLY_DEBUG_BASE when page size is 256k https://git.kernel.org/powerpc/c/03fd42d458fb9cb69e712600bd69ff77ff3a45a8 cheers