From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93B70C6FD1D for ; Wed, 15 Mar 2023 14:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bbxSCXUeypIikvuLGfkHgZGOG2gIF+sYXNSUNMdy1UY=; b=HYeQyXcRas/wVv b7PGB/5qDTNWSrK73OHvs7E+arF8SsY3Qd2fsuYKt9BuUhqKd/nTUtZjIsgAAI/5/+swMW0/mZze9 ArM+DjXu4Mg6Mz8xWqIafjgxN7HdS4HdvUp7c92vdfpB3j4bDGC5067t/HllXbLNNeir0nDq/Xu5A IIC+qybHf90uvjryVvBPIpYaFpWyEaljb6BcH9XIgmMmWe1S+q10RT734El4EazdxDey36KwslIJc hzUNUNT9hOq3xk35YihvJ1o01ysgniDgy/t+YDOrXysNsYGtAHHhHoU8o750rSFhlE7lqXVI0CvhZ pUHXHcMrrwP2W5uEjn1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pcRqg-00DZbb-1B; Wed, 15 Mar 2023 14:11:26 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pcRqd-00DZau-2p for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2023 14:11:25 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 87629B81D16; Wed, 15 Mar 2023 14:11:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F4E4C433D2; Wed, 15 Mar 2023 14:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678889480; bh=2ZgKuhUmzQIJi23DQ8WF3KDhzuA/X0PImxAEr7gKhN8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kA5f8Y1Dnke5ByAplIBxQGzhQT0boWVHFAhi8fDZat3Ya3sdFuvKl/TOeAfowyXjL JBKnMPQFDwGyOge6nRoKAIbtu/XLv+z/E1al/+14xw7ukgDy/l3iGy+DUMPOquHpU7 eNirsu4oWOgbs9F1KLsJ7zEyVW+G5+yVL8bSWFqPnJ/v0Nk9VqPYjYYpvkQMYF5DaO JYau2YuL7OeKwTDqRyNY6UqtEEkZo7rlXYFpGQBq+83t1fhlZXl6DH8625dDseTs8w AosefqK5NnUkjM+7SIsXr1sJ6m4rx1HJS6Sy85TeKxWx/UJYhsSeEYJtqDvqweaWsq CHXERPBznwQ9Q== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pcRre-00012y-UT; Wed, 15 Mar 2023 15:12:27 +0100 Date: Wed, 15 Mar 2023 15:12:26 +0100 From: Johan Hovold To: Manivannan Sadhasivam Cc: will@kernel.org, joro@8bytes.org, robin.murphy@arm.com, andersson@kernel.org, johan+linaro@kernel.org, steev@kali.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] iommu/arm-smmu-qcom: Rework the logic finding the bypass quirk Message-ID: References: <20230314184659.176473-1-manivannan.sadhasivam@linaro.org> <20230315075958.GC25575@thinkpad> <20230315133730.GB98059@thinkpad> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230315133730.GB98059@thinkpad> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230315_071124_079865_C45C76A6 X-CRM114-Status: GOOD ( 20.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Mar 15, 2023 at 07:07:30PM +0530, Manivannan Sadhasivam wrote: > On Wed, Mar 15, 2023 at 09:38:42AM +0100, Johan Hovold wrote: > > On Wed, Mar 15, 2023 at 01:29:58PM +0530, Manivannan Sadhasivam wrote: > > > On Wed, Mar 15, 2023 at 08:37:32AM +0100, Johan Hovold wrote: > > > > > > > +static int qcom_smmu_cfg_probe(struct arm_smmu_device *smmu) > > > > > +{ > > > > > + u32 smr; > > > > > + int i; > > > > > + > > > > > + /* > > > > > + * Limit the number of stream matching groups to 128 as the ARM SMMU architecture > > > > > + * specification defines NUMSMRG (Number of Stream Mapping Register Groups) in the > > > > > + * range of 0-127, but some Qcom platforms emulate more stream mapping groups. And > > > > > + * those groups don't exhibit the same behavior as the architecture supported ones. > > > > > + */ > > > > > > > > Please fix your editor so that it wraps lines at 80 columns, which is > > > > still the preferred (soft) limit. > > > > > > > > > > If exceeding 80 columns end up making the comment more readable (fewer lines), > > > then why should we limit ourselves? > > > > Exceeding 80 column for comments does generally not improve readability. > > > > It all depends on the perspective/preference... But I can limit to 80 columns > here. No, this is not about preference. The soft limit is 80 columns and a valid reason for breaking that for comments would be, for example, if you have a long URL or something which does not fit within that width (and not just personal preference). Johan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel