Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1410835pxj; Sat, 12 Jun 2021 07:47:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVwutRArQfMJHC+BqMO1yRVZoiKgSsfIeM6M07hBxBl867AwKD82nNr3qEIpLxgL7fIu88 X-Received: by 2002:aa7:cb45:: with SMTP id w5mr8932387edt.170.1623509276583; Sat, 12 Jun 2021 07:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623509276; cv=none; d=google.com; s=arc-20160816; b=roEkwHH0RGrtgirA//bvukeCyeDlU1vyGPcZ0v93/kzdh2DESex4/2biXBkVRaFoyy HH61ozIw9J/HI5tT9m/S1h1xxjVACLvzG//Lj0Dc5rVNqGpRcF2gE/e+Du9i1eMNgUSv PktqgB+XwMEq+UfKctUKJP48HyYIRcCmqUuXrAHm+CvphV3ELbMaiykPfWEJlugUYC6q MNj3EQ9ShZ12ZucBj0ieaJOfmRiF+5tbFY6GzVzcxZFtS8nuYVVvRaHEhP41gPEEoDsC pvfJXndU8G5pAtzutaZv4V1UdO3ruaayYugmwOLUPbnfzBIiJekhZ4sJhQtCrQSemUe6 i96A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:reply-to:dmarc-filter:sender :dkim-signature; bh=RhtvN2QTW0JZFH6Rjd3vbX9yOl+YFdfv0SB17b2868c=; b=BKzrrGXpf1B+vw1pDj8MafHPvlMBzIEa//PSMhhQHs9Rn/mCCg21M+L3wA3nROq+I7 PbGaZ3UZMw47bjPYOUFgsBRKt34isqU2eqa6/R+HBWtdE6vra3Yw7MtD6choa6D5xpdO 7GxjnFN/1rLyEStuinc1J06Ypw2cttMED2hrQWN6TF8lZGhaZv3kdViLIIaxTHJQfz6P CoqeVjbdJ8/Tjg+YHvcr9PBg53ff1XWd49e1HMlVfdEPpGMQ4QjxqRpQAqoegahSUw8Y oiguMZJrtPQkDF3vsmEc6UF/ANxbvsbdk3serHF83S2yOyWwRwBKWeHQEmo4MYc7dCkd JuyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=kaSh+TfP; 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 bf28si7064137edb.224.2021.06.12.07.47.33; Sat, 12 Jun 2021 07:47:56 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=kaSh+TfP; 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 S231309AbhFLOqb (ORCPT + 99 others); Sat, 12 Jun 2021 10:46:31 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:30388 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbhFLOqa (ORCPT ); Sat, 12 Jun 2021 10:46:30 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1623509071; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Reply-To: Sender; bh=RhtvN2QTW0JZFH6Rjd3vbX9yOl+YFdfv0SB17b2868c=; b=kaSh+TfPCnNJF8u8rH3jPdZhycQtVHDFYRQIhbPdMK6y3llX7R3EiHgR8Y+8S6+dbuTwDvTe FgBYEAfwTZqQrM5a6F+ZD1ezoWUkAyCJL5wc5a6OfZII9lxcujRj1tQ70L5UcQ1ZghzyK321 m+ZZlRrNvTHvedD8VKuZsoOFyCU= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 60c4c838ed59bf69ccbbf38a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 12 Jun 2021 14:44:08 GMT Sender: bcain=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BFE3EC4323A; Sat, 12 Jun 2021 14:44:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, PDS_BAD_THREAD_QP_64,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from BCAIN (104-54-226-75.lightspeed.austtx.sbcglobal.net [104.54.226.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bcain) by smtp.codeaurora.org (Postfix) with ESMTPSA id EAC33C433D3; Sat, 12 Jun 2021 14:44:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EAC33C433D3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=bcain@codeaurora.org Reply-To: From: "Brian Cain" To: "'Christophe Leroy'" , "'Chris Mason'" Cc: "'Josef Bacik'" , "'David Sterba'" , , , "'linux-btrfs'" , References: <185278AF-1D87-432D-87E9-C86B3223113E@fb.com> In-Reply-To: Subject: RE: [PATCH] btrfs: Disable BTRFS on platforms having 256K pages Date: Sat, 12 Jun 2021 09:44:05 -0500 Message-ID: <17a401d75f99$662cdc50$328694f0$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: en-us Thread-Index: AQFXZSsKSQYV21VAkXhEQlQXq32SZQKLFB0ZAuYFiEqr5N8nYA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Christophe Leroy ... > Le 10/06/2021 =C3=A0 15:54, Chris Mason a =C3=A9crit : > > > >> On Jun 10, 2021, at 1:23 AM, Christophe Leroy > wrote: > >> > >> With a config having PAGE_SIZE set to 256K, BTRFS build fails > >> with the following message > >> > >> include/linux/compiler_types.h:326:38: error: call to > '__compiletime_assert_791' declared with attribute error: BUILD_BUG_ON > failed: (BTRFS_MAX_COMPRESSED % PAGE_SIZE) !=3D 0 > >> > >> BTRFS_MAX_COMPRESSED being 128K, BTRFS cannot support platforms > with > >> 256K pages at the time being. > >> > >> There are two platforms that can select 256K pages: > >> - hexagon > >> - powerpc > >> > >> Disable BTRFS when 256K page size is selected. > >> > > > > We=E2=80=99ll have other subpage blocksize concerns with 256K pages, = but this > BTRFS_MAX_COMPRESSED #define is arbitrary. It=E2=80=99s just trying = to have an > upper bound on the amount of memory we=E2=80=99ll need to uncompress a = single > page=E2=80=99s worth of random reads. > > > > We could change it to max(PAGE_SIZE, 128K) or just bump to 256K. > > >=20 > But if 256K is problematic in other ways, is it worth bumping > BTRFS_MAX_COMPRESSED to 256K ? >=20 > David, in below mail, said that 256K support would require deaper = changes. So > disabling BTRFS > support seems the easiest solution for the time being, at least for = Stable (I > forgot the Fixes: tag > and the CC: to stable). >=20 > On powerpc, 256k pages is a corner case, it requires customised = binutils, so I > don't think disabling > BTRFS is a issue there. For hexagon I don't know. Larger page sizes like this are typical for hexagon. Disabling btrfs on = hexagon seems appropriate. -Brian