Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2213879pxb; Mon, 23 Aug 2021 14:58:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpLSGNknP6fCyF3Q5br/IabVfCvPiB/jAuaa1++Tc8P5Fg7Dwdd1oPlV2iwr00iJ0e/J8i X-Received: by 2002:a05:6638:265:: with SMTP id x5mr30796980jaq.23.1629755934828; Mon, 23 Aug 2021 14:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629755934; cv=none; d=google.com; s=arc-20160816; b=iLFHkjCDgxZAmNjMAuHJ5R0Kg5YWLSfnX9sMQMjIXx79eBaBKhplFHr/C2xk3oyx6W /Y1990BjujidT6zbUQW9ZlnAscPLNl2nA2TlVFoIPhhc5DI7g9BPSeklz7hbh8kd4twt RpMgp/Cl2k5e6XsRL1HoBonAexj4b3oLxx/YSNItuKrfZXGacFi/mJRbA098fU0rOz5+ KheXlo4givM6fj6pcR2z9Xla6qWAoZMvPAsJ4uXvXpKIqNFNiYG4ERlD/30MFwToGcU4 h4iOQGDuvrwB7+rODvmwdXR+DUx3cJvy/SEpfujhA7OYSnaU6hXpaSYpyBfUDn70SugJ gcHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date; bh=/DGRx2dTO2Pvru8qnu7ifEqloC5L1WqTm0gh9Lymlks=; b=aiiThx4EdFd/4ZQDS4HvNurJCS4b3kfrqwAX+Wv9u59fydXecS4G53IcbFQLkvEhF8 zz6iYVOW/Y2cF/SD6v1zjWaQUbNV6Ek6lIZ+aI7vQevIinA0tDtEWC3Bh2keFqCidN/y rZVPL3BEuKxq4qeri9JlIFVfJPBe3PdLO6R8B6XZvwHOAUgSt0Em2ZkgRivO34ibtDw1 H2LSa2ayD/UAlpPOoauWawJSzS+a3kGZ47y0RL47Y+h80fTbziMj9Zvywc+wUoSvMxol C821uZ8fsE8ge3u+9LtTYChS+ZAGI1ehahjuviObLwvWmMnEex6j+RIszQ55eyIKDZEO l3Ug== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o12si9157501iow.40.2021.08.23.14.58.41; Mon, 23 Aug 2021 14:58:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232987AbhHWV6p convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Aug 2021 17:58:45 -0400 Received: from foss.arm.com ([217.140.110.172]:57436 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232898AbhHWV6o (ORCPT ); Mon, 23 Aug 2021 17:58:44 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E99BD1042; Mon, 23 Aug 2021 14:58:00 -0700 (PDT) Received: from [127.0.0.1] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7ABFA3F766; Mon, 23 Aug 2021 14:58:00 -0700 (PDT) Date: Mon, 23 Aug 2021 22:57:56 +0100 From: Steven Price To: dri-devel@lists.freedesktop.org, Alyssa Rosenzweig CC: Alyssa Rosenzweig , Rob Herring , Tomeu Vizoso , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, Chris Morgan Subject: Re: [PATCH 2/3] drm/panfrost: Use u64 for size in lock_region User-Agent: K-9 Mail for Android In-Reply-To: References: <20210820213117.13050-1-alyssa.rosenzweig@collabora.com> <20210820213117.13050-3-alyssa.rosenzweig@collabora.com> <71392001-a5a9-fee2-79a5-91df55ba3081@arm.com> Message-ID: <77CFD756-7F02-4CBA-9E58-3EDA2167620E@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23 August 2021 22:11:09 BST, Alyssa Rosenzweig wrote: >> > Mali virtual addresses are 48-bit. Use a u64 instead of size_t to ensure >> > we can express the "lock everything" condition as ~0ULL without relying >> > on platform-specific behaviour. >> >> 'platform-specific behaviour' makes it sound like this is something to >> do with a particular board. This is 32bit/64bit - it's going to be >> broken on 32bit: large lock regions are not going to work. > >Oh, my. I used the term as a weasel word since the spec is loose on how >big a size_t actually is. But if this is causing actual breakage on >armv7 we're in trouble. I'll add a Cc stable tag on v2, unless the Fixes >implies that? The usual practice is to put CC: stable in the commit message or the fixes tag (no need to actually CC the stable email address). So just Fixes: should work >Thanks for pointing this out. It's not actually quite so bad as it could be as >4GB regions are unlikely (especially on 32bit), but the GPU does of course support such a thing. Thanks, Steve