Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2992058pxv; Mon, 12 Jul 2021 06:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8+EY9XWezJxc8TEFryUOa5qhYEzfAQXce1VabHSZbIOPTaze7GBX9IVuDz8hNfIcEP0nX X-Received: by 2002:a17:906:498b:: with SMTP id p11mr53365874eju.295.1626098088192; Mon, 12 Jul 2021 06:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626098088; cv=none; d=google.com; s=arc-20160816; b=QkJichaeqGvqD9JI2Nvt0c2/i6mnjrf7N5tRXobvY7ZG0sNmzNJO87zB7R/BEquqBw d1g+ZN4POdzjKXjjqwNuc0aTxS4l2RWbtcnEiivcAZnqONjrGGREaJRBQfXjsNmE4Jrp Y4DAORSYC+QnO7DM/zZleOMLk+5kKSMVpX0bN36V7BR2r76MlHJaTWlFS+haN4VVV1YX jnsdEAyiT2ou/wmMPeoDs2vdTGraHiCigbHBxqvMbwvZCO7Yoof3Ck4XIEs3bHqpjdhp oqARP5o+xqtebr61TIV+qp/xAVHQlk7mflrACzVyW9ltP3X34x1TX3awwGXYHLKsLZ4A /zlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8vnplVvM0ge8xJDWjh23r+44/mM2NYYSKK77/3c6y9k=; b=EQEmYc1ZWhrc2Qgx/EsFa2ZuA5V2t/TRjN46unHDfLHT3T1lyK64YZMa2YXXv9kOl7 mkVDTVJ7GtPXXh18tA6HZFgE1ZrbvkV0yYom6wmWpILezF9DmzxruQM8Z/JfvsUMCwiF 2UN/d1rgWAFxw76McZ1rPZqq7uAGS6ZuWfvrr9EVq+U8UJkj4gVnk6tpmX6nxeOBDHxB zZBT7iBwSh6M1zzsAv5cUjUhNOz3xCwIdGqCSE3zBXHfjgZpJt9jYJJLWb+L+hNL+Qr/ C4YqM9ftiEmBiMXtkIIZhcmqkN1b/eVJQ6Es4TjbngIt8kqYHpHGBehorB3ssRKhRsRj He6A== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zd9si16599313ejb.524.2021.07.12.06.54.24; Mon, 12 Jul 2021 06:54:48 -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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233830AbhGLN4N (ORCPT + 99 others); Mon, 12 Jul 2021 09:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230518AbhGLN4M (ORCPT ); Mon, 12 Jul 2021 09:56:12 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 414F3C0613DD; Mon, 12 Jul 2021 06:53:24 -0700 (PDT) Received: from maud (unknown [IPv6:2600:8800:8c04:8c00::ffa6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: alyssa) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 198401F4249E; Mon, 12 Jul 2021 14:53:16 +0100 (BST) Date: Mon, 12 Jul 2021 09:53:11 -0400 From: Alyssa Rosenzweig To: Sven Peter Cc: Will Deacon , Robin Murphy , Joerg Roedel , Arnd Bergmann , devicetree@vger.kernel.org, Hector Martin , linux-kernel@vger.kernel.org, Marc Zyngier , Mohamed Mediouni , Stan Skowronek , linux-arm-kernel@lists.infradead.org, Mark Kettenis , Petr Mladek via iommu , Alexander Graf , Alyssa Rosenzweig , Rob Herring , Rouven Czerwinski Subject: Re: [PATCH v4 3/3] iommu: dart: Add DART iommu driver Message-ID: References: <20210627143405.77298-1-sven@svenpeter.dev> <20210627143405.77298-4-sven@svenpeter.dev> <16ffb4ec-86a4-4300-b175-5d7a1fcbf994@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16ffb4ec-86a4-4300-b175-5d7a1fcbf994@www.fastmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Should we be checking alignment here? Something like > > > > BUG_ON(paddr & ((1 << DART_TTBR_SHIFT) - 1)); > > > > Sure, right now paddr will always be aligned but adding that > BUG_ON doesn't hurt :) Probably should have suggested WARN_ON instead of BUG_ON but yes.