Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751551AbdINSaU (ORCPT ); Thu, 14 Sep 2017 14:30:20 -0400 Received: from mail-eopbgr50076.outbound.protection.outlook.com ([40.107.5.76]:60240 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751316AbdINSaS (ORCPT ); Thu, 14 Sep 2017 14:30:18 -0400 From: Roy Pledge To: Catalin Marinas CC: Leo Li , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "mark.rutland@arm.com" , "arnd@arndb.de" , "Madalin-cristian Bucur" , "linux@armlinux.org.uk" , "oss@buserror.net" , "Claudiu Manoil" Subject: Re: [v4 05/11] soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check Thread-Topic: [v4 05/11] soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check Thread-Index: AQHTHRjmffpzgoeywEqMxGjdq+sYZQ== Date: Thu, 14 Sep 2017 18:30:14 +0000 Message-ID: References: <1503607075-28970-1-git-send-email-roy.pledge@nxp.com> <1503607075-28970-6-git-send-email-roy.pledge@nxp.com> <20170914134916.evw2mhjhxa6zo72x@localhost> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=roy.pledge@nxp.com; x-originating-ip: [192.88.168.50] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB6PR04MB3190;6:5zjEuaoE5BhxnWilMe/pfNIrxzlFNHALiM4+i//zPnwwdzLaNilg2intheSJhmxXILb038D4+EDSYj859mfhTIUzLXWEX7a9D7tBHfORX74IrvozdvJ8N5fWEmaUMejKp89uSAnjmV3z23DitwtrNPLxcB3lZRDcT0mTb21UWxY5wPJUIDqwIJ0bIaL098SXy+Sm6srO8AXPpum778msaB+PT74CS2tAqSuKofPhCl2D2hSHAbciG+SaVBA5UfHVU7wMt55h53SCAy4Z2WBDmPpSxAIRnmjIXBV+R4UWC9wxoNkkUtI2x+eEOANygYOiG0UKaT5HNcxmieMf7HxHag==;5:kL0DKF1xUUXj631j6XaP0teHANdBNZ7sWqdSdkx1EO4xiN4DSp1eTxSkkF5FJKtDYjup5uXugtFRYHj9Qnyr6f46QRF8LEJcRZV+1AoXk0uiMZ96Jn6uyTtRNVH6SQJ61VtcU2Vt4oMk9XQQ07W/zA==;24:sLFM8YdJOSA/OcLfQqPyUqvz7Mw4Cvn6Gip0FEyBsURL9D6to4wd1s5PKy8tqXR3x9ZINT42BR1aJ6+EGsE9StYAh0LxqqCopesCaAYQbyE=;7:hTTSPbE9LfP3vFjtSKB4Nvt5J0o8eOqZunXUtXaBoD/4ogPKjJfVV+Ea7TBe+2lYrVlz0IRD1rpjElFmF6suMDidk14lnuUAP6M/TrKrTJgxZp56KuSGmuNiEeH/xXw6o78psg2tIdHjQ0M/8rFnvYgrBy9Tu4O1XDkZ9Uaebnc1266DNk+QFCXGBc9MrsqqFtKuCr3HBYPFk9yC8t4RPJutU1A5j16XVw9i3f2FkrQ= x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(6009001)(376002)(346002)(39860400002)(377454003)(189002)(199003)(24454002)(229853002)(5250100002)(2900100001)(68736007)(7696004)(101416001)(86362001)(6246003)(6916009)(110136004)(33656002)(97736004)(3280700002)(6436002)(6506006)(5660300001)(478600001)(316002)(14454004)(106356001)(7736002)(6116002)(102836003)(54356999)(3846002)(50986999)(105586002)(76176999)(25786009)(4326008)(53546010)(305945005)(189998001)(74316002)(9686003)(8676002)(551934003)(2906002)(81156014)(99286003)(81166006)(3660700001)(53936002)(8936002)(66066001)(55016002)(54906002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR04MB3190;H:DB6PR04MB2999.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-ms-office365-filtering-correlation-id: de8c3767-cf7c-46ad-2b8f-08d4fb9ea44f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DB6PR04MB3190; x-ms-traffictypediagnostic: DB6PR04MB3190: x-exchange-antispam-report-test: UriScan:(185117386973197); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558100)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DB6PR04MB3190;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DB6PR04MB3190; x-forefront-prvs: 0430FA5CB7 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Sep 2017 18:30:14.5045 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3190 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v8EIUOlb023170 Content-Length: 1948 Lines: 45 On 9/14/2017 9:49 AM, Catalin Marinas wrote: > On Thu, Aug 24, 2017 at 04:37:49PM -0400, Roy Pledge wrote: >> From: Claudiu Manoil >> >> Not relevant and arch dependent. Overkill for PPC. >> >> Signed-off-by: Claudiu Manoil >> Signed-off-by: Roy Pledge >> --- >> drivers/soc/fsl/qbman/dpaa_sys.h | 4 ---- >> 1 file changed, 4 deletions(-) >> >> diff --git a/drivers/soc/fsl/qbman/dpaa_sys.h b/drivers/soc/fsl/qbman/dpaa_sys.h >> index 2ce394a..f85c319 100644 >> --- a/drivers/soc/fsl/qbman/dpaa_sys.h >> +++ b/drivers/soc/fsl/qbman/dpaa_sys.h >> @@ -49,10 +49,6 @@ >> #define DPAA_PORTAL_CE 0 >> #define DPAA_PORTAL_CI 1 >> >> -#if (L1_CACHE_BYTES != 32) && (L1_CACHE_BYTES != 64) >> -#error "Unsupported Cacheline Size" >> -#endif > > Maybe this check was for a reason on PPC as it uses WB memory mappings > for some of the qbman descriptors (which IIUC fit within a cacheline). > You could add a check for CONFIG_PPC if you think there is any chance of > this constant going higher. > No, the reason PPC needs WB (technically any cacheable mapping) is that the QBMan block on those parts will raise an error IRQ if it sees any transaction less than cacheline size. We know that this cannot happen on PPC parts with QBMan when there is a cacheable mapping because we also developed the interconnect for everything that has a QBMan block. We dropped the check for L1_CACHE_BYTES due to the value being set to 128 on ARM64 even on parts that has smaller caches. I don't think there is much to worry about here as cacheline size isn't something SW controls in any case. If we produce a part with QBMan that has a larger cache granularity we will need to address that in other parts of the code as well. The check was in the code for PPC as a sanity check but since the value isn't (in my opinion) meaningful on ARM we can remove it to avoid problems.