[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YOxJRw9H08pwnRgc@maud>
Date: Mon, 12 Jul 2021 09:53:11 -0400
From: Alyssa Rosenzweig <alyssa@...labora.com>
To: Sven Peter <sven@...npeter.dev>
Cc: Will Deacon <will@...nel.org>, Robin Murphy <robin.murphy@....com>,
Joerg Roedel <joro@...tes.org>,
Arnd Bergmann <arnd@...nel.org>, devicetree@...r.kernel.org,
Hector Martin <marcan@...can.st>, linux-kernel@...r.kernel.org,
Marc Zyngier <maz@...nel.org>,
Mohamed Mediouni <mohamed.mediouni@...amail.com>,
Stan Skowronek <stan@...ellium.com>,
linux-arm-kernel@...ts.infradead.org,
Mark Kettenis <mark.kettenis@...all.nl>,
Petr Mladek via iommu <iommu@...ts.linux-foundation.org>,
Alexander Graf <graf@...zon.com>,
Alyssa Rosenzweig <alyssa.rosenzweig@...labora.com>,
Rob Herring <robh+dt@...nel.org>,
Rouven Czerwinski <r.czerwinski@...gutronix.de>
Subject: Re: [PATCH v4 3/3] iommu: dart: Add DART iommu driver
> > 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.
Powered by blists - more mailing lists