Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3110431pxb; Tue, 24 Aug 2021 15:38:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNHWBfywn+0RUlxCvqrES/5Bx8V4KS253ANUs91VKHUs0IzBKM8ZeuKBiI02T4PWNPjGER X-Received: by 2002:a17:906:160a:: with SMTP id m10mr19842833ejd.67.1629844692768; Tue, 24 Aug 2021 15:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629844692; cv=none; d=google.com; s=arc-20160816; b=yqJ0ICN0NXC8EuYwUtnPzdHlyBVORbn70/r6pT8qT7UMXCq5Mj6Lv9SK1S/yrMGQAf 4xYBPhfJGTAFiIpHv+JVO/jb9ePvwpqPAMUqW3I8+D05+tIlHqWqRTaCuelFAPvJ5i4P It/XSbqCYLL/SWchbMZQq2wBBT/PSiuUSwhpZLRqyrCCgJ6jx0UASS/hnKhP/4WJJWK8 kukNR9fERUkbT/spize78mxvJ1laed7y8qYCfrNM4xLkMZIRAQPeEwbod+GZJR60i+LT 4xNhqeGKQIevwCoLJicb+hBb81ZndckuehsWfeOG45kaECJ6poI+sY4SZIQ6jalMuWLG OfjA== 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=jVmMeZA7hrUbU3biJCDq41j/YW+kV+H8d+8HGBqzUgk=; b=QLoe3sPkep0AUc1vCWxEuA7vIU2ZFETPxL1SePyOJuuJM/C3pK+Fu/9pOOeqlEX+G3 W7hTnBsQQuo78sQNr0rj+VXcopYJhf3qINyFi/IYYn9n/wgizDqR9I8m+eFTDg4ktaCH 7DI5dwDB/qVMo2QpdMKh3R/ZbiiNHICAGqiuq1qUEZ9kT8p2i9IZNT4q6BGpbsCmw2uK 5WBh4ZJg1pTTpWR4SXSBOxMFJm+pgO6Sts3ei9IWFh+mnLFwNXzAxAWca0l12QfW9Rgm Rs6cDGKAjJLbMS3ZseUXPMUjnXAjmx7nGWtv7QxJlvAsbZllDdvxEwWZRgOEoxC5FIH4 009A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eZdREbvx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd8si18356502ejc.657.2021.08.24.15.37.47; Tue, 24 Aug 2021 15:38:12 -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=@kernel.org header.s=k20201202 header.b=eZdREbvx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229605AbhHXWdR (ORCPT + 99 others); Tue, 24 Aug 2021 18:33:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:44990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbhHXWdQ (ORCPT ); Tue, 24 Aug 2021 18:33:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9960961220 for ; Tue, 24 Aug 2021 22:32:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629844351; bh=10CR99EYOcsvAxA/Al3XzcQv8Nj0aWopUCUoKMem1aI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eZdREbvxJGaWnWCOe5A1PfaFfh/XlBVfjTXifmqJDLl/5AMmLfk9WBaV87ALhEtgZ DiBTDQzH+btFTaKMLsUePpKghcDQ0qoeLOVUf9H03QaPJZXaL2qavo+/IIDBXMmuvw DRJljmzht2nl9hkWv54Odc6wuXoHU6ikTBQTUhHMt0DMRt0jCj8C7vNnz7aw8/kOmz 1plTeStOd3wYk7DMQpu8j/QGrR64YqGzl/XWyztzBJ+UkcPx8u3rWHsIVGvY3MEdDZ ci/U0y3h/10ddcNZyLr+OebXDZSx9d6zQiCwAcI0UYf6OgtWbhDINNmg5/xWJp/31+ gxFunG9720K8Q== Received: by mail-ej1-f51.google.com with SMTP id u14so22608133ejf.13 for ; Tue, 24 Aug 2021 15:32:31 -0700 (PDT) X-Gm-Message-State: AOAM532hsHo0GKxbH9dNaIph0SOytl5vcSlGpdEBHTw8PkoWXXtd6d5q VsmZ9RH8WcD6JPkBm9j/4fv+olBuH8ZbN7FfHg== X-Received: by 2002:a17:906:ff41:: with SMTP id zo1mr12446795ejb.525.1629844350263; Tue, 24 Aug 2021 15:32:30 -0700 (PDT) MIME-Version: 1.0 References: <20210824172614.7299-1-alyssa.rosenzweig@collabora.com> In-Reply-To: <20210824172614.7299-1-alyssa.rosenzweig@collabora.com> From: Rob Herring Date: Tue, 24 Aug 2021 17:32:18 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/panfrost: Use upper/lower_32_bits helpers To: Alyssa Rosenzweig Cc: dri-devel , Tomeu Vizoso , Steven Price , David Airlie , Daniel Vetter , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 12:27 PM Alyssa Rosenzweig wrote: > > Use upper_32_bits/lower_32_bits helpers instead of open-coding them. > This is easier to scan quickly compared to bitwise manipulation, and it > is pleasingly symmetric. I noticed this when debugging lock_region, > which had a particularly "creative" way of writing upper_32_bits. > > Signed-off-by: Alyssa Rosenzweig > --- > drivers/gpu/drm/panfrost/panfrost_job.c | 8 ++++---- > drivers/gpu/drm/panfrost/panfrost_mmu.c | 12 ++++++------ > 2 files changed, 10 insertions(+), 10 deletions(-) Reviewed-by: Rob Herring