Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp887440pxb; Mon, 16 Aug 2021 21:31:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGdebjH8nOJ/CoLsuclMUHOoCwrPYhl41uEEQMoE05Y6p+WfGLb1JbXl9bOaAImz1bPWlp X-Received: by 2002:a05:6402:54a:: with SMTP id i10mr1810102edx.172.1629174708688; Mon, 16 Aug 2021 21:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629174708; cv=none; d=google.com; s=arc-20160816; b=oJig5rxTqX8oKMy5Qwy6XYMwcZEo5eIEvLerVN/yOGs1R4ALktDPLBh6/Fa36x6SVF XqZFpDuOAVsi3Q9WAPKdykg0MOAJlhdNAiaMcWlh8KyDcKBZBp9Nq2v7ysRgJPg40eEz biadyicKdIvm3PQ2I0765zD4R2/MY6LT6Bl6Q3EdlD2ANCQ7owzLocX4MH5M48mO/RcU e/K2XdOB3xfG8vJUfuVk3yvH7rNjtVQifgVHzuUvbPkDGqpGoUykMxFiD+8mTyEjqBtS 5dXR7JMEfF9E2x/8DEX8yqlcCsSaAY/yNgtqjEk1RYn+t9u5DREGRcoDp2ATlD0AIQuW RHaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:in-reply-to:date:sender:references:subject:cc:to:from :dkim-signature:dkim-filter; bh=wlaIEKAXV27quyxEnzSIG06RF0UZM8Yvm+kUuRMp01o=; b=Kwrr7Z7DBZ/Q+cVSkDQug3QyS8nitWWEYFG9vXY9bjpCcPRQVcgztjimXzSnG9xbBB 1ke+674XjQ6g6NsADMmMGCCbBbV/oSosiK88ojfQkk6wldIFqhBAaP+Zz1mQw/joK4gy ZFXeSTQJYhkfI7fesonKvIP3pA+xOSCqYl8WletuzYktb9TH3Pd64E9I7H24AzW4il5r B3bXgQ0a1fvZiMB2QOGCZJRr+ZkP9wmz3lC34IvvrZk7djReYIrbomqr8dmvJyDE9vrz 2lkHNRyr8modjTPErRrYmjekQBUq653K5gALT2/FX6lHSsFZKkF94Hc54Q3cTx5TaJ60 VN8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=JKYoS05j; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si1156443edp.563.2021.08.16.21.31.25; Mon, 16 Aug 2021 21:31: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; dkim=pass header.i=@piap.pl header.s=mail header.b=JKYoS05j; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbhHQEaB (ORCPT + 99 others); Tue, 17 Aug 2021 00:30:01 -0400 Received: from ni.piap.pl ([195.187.100.5]:55804 "EHLO ni.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbhHQEaA (ORCPT ); Tue, 17 Aug 2021 00:30:00 -0400 Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) by ni.piap.pl (Postfix) with ESMTPSA id 3ABF7C3F2A51; Tue, 17 Aug 2021 06:29:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl 3ABF7C3F2A51 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1629174566; bh=wlaIEKAXV27quyxEnzSIG06RF0UZM8Yvm+kUuRMp01o=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=JKYoS05j2iuCyl77xj+x6tJoKUnHp7X+pkuIFIsy+8M/U2OiDhAnoFKbha9/hAiw8 GWNbSESo0Ug/teijL5CAWsxeAoFA2nEWnDlmiJhZ5BT+Ev4QyQ7XqEufH/nSk6IJXk gsyEgqCWgUgPZexfntPTWpa6Oa+8yi4BcPThFhz4= From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Rob Herring Cc: Bjorn Helgaas , PCI , Artem Lapkin , Neil Armstrong , Huacai Chen , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84s?= =?utf-8?Q?ki?= , Richard Zhu , Lucas Stach , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] PCIe: limit Max Read Request Size on i.MX to 512 bytes References: Sender: khalasa@piap.pl Date: Tue, 17 Aug 2021 06:29:26 +0200 In-Reply-To: (Rob Herring's message of "Mon, 16 Aug 2021 14:34:00 -0500") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 165596 [Aug 17 2021] X-KLMS-AntiSpam-Version: 5.9.20.0 X-KLMS-AntiSpam-Envelope-From: khalasa@piap.pl X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dkim=pass header.d=piap.pl X-KLMS-AntiSpam-Info: LuaCore: 454 454 39c6e442fd417993330528e7f9d13ac1bf7fdf8c, {Tracking_arrow_text}, {Tracking_Text_ENG_RU_Has_Extended_Latin_Letters, eng}, {Tracking_marketers, three}, {Tracking_from_domain_doesnt_match_to}, piap.pl:7.1.1;t19.piap.pl:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2021/08/17 03:39:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2021/08/17 02:51:00 #17049510 X-KLMS-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rob Herring writes: >> +#ifdef CONFIG_ARM >> + if (rq > max_pcie_mrrs) >> + rq =3D max_pcie_mrrs; >> +#endif > > My objection wasn't having another kconfig option so much as I don't > think we need one at all here unless Bjorn feels otherwise. It's 2 > bytes of data and about 3 instructions (load, cmp, store). > > If we do have a config option, using or basing on the arch is wrong. > Has nothing to do with the arch. Are the other platforms needing this > arm32 as well? Yes, I can buy the "universal ARM32 kernel" argument, but otherwise it's just nonfunctional bloat. A small one, yes. --=20 Krzysztof "Chris" Ha=C5=82asa Sie=C4=87 Badawcza =C5=81ukasiewicz Przemys=C5=82owy Instytut Automatyki i Pomiar=C3=B3w PIAP Al. Jerozolimskie 202, 02-486 Warszawa