From patchwork Tue Apr 13 19:38:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1465930 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=iPeiVwxA; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FKbWl3Wnjz9sSC for ; Wed, 14 Apr 2021 05:38:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 304AD804E7; Tue, 13 Apr 2021 21:38:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="iPeiVwxA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D1FA4804E7; Tue, 13 Apr 2021 21:38:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2072b.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::72b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BD5CD804E7 for ; Tue, 13 Apr 2021 21:38:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R1EH6r89jj0yP2dIdWAqthcdxu/CU9xic9Y1ZO0xAV3gX5CMzSBUWXUF3IVKngCZXzHHc6pwM/iEdKfQ99lq1leW39fJz5SsgqmyeSZzzE7JHY05OkA3i3myBNv6GypDIVBLY78FRRJrRqpBCL0qP8YdxY3Q77Za3rPn3idB59MVD2LhGdPF9f6JVVJqAr6aNB93/6MD6tDuehGuMwM2Zav0ZUbet+z4KVNJDK9AinBYinm2oPhYHa2GCWpztMlb1G2WcHG9R6skP4+5Cbesrjdz3MEhxX0Vyh+tZjCbAXg4ZPUEhGOL8T4sjiZpXYRsRwVKnDEZdXYmvmubxT6KvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kQsdv6LxYaJdbQ95K/Xm8UUVU8FuOL4RZmO7WnHxFao=; b=IQtGZcwBxVnMKZXN5vO5pyQ0vF7t+BVUiFVXPr1+bG8dCDzKaoAVDCyMDExqDWl0I29DBsuUeeSNvz3nMsWnMci2x7BdieKQujYFLGlNagByqVs02AdA1A2S68i5PZWB/tceX0Mh7RavMz3gzeF9aU/kbVBPeeL0mLEul6i5R23hXbJBdgDg+eNjNLMiIqh8ygGUJl4ycwY4gSkVEwwQ8OE/UcWXKD5xkI07YkwpKLR7nrEYJf/XF8ty0Ez6/WENV5rz8ShEu7y5BUSt4ZBts2TNSW63nxW9pwlC6rpWgqjQCnHThrTK9e4tZGW3px1CHxzIPeq2wNWrnatpgbs4xQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kQsdv6LxYaJdbQ95K/Xm8UUVU8FuOL4RZmO7WnHxFao=; b=iPeiVwxA0Mln0bEBRgiP2nbiiblNPP8Z3SN+Ee6OvBBqzZ3Roa1be41h2u1RB6uT1kzpJ1ByPlT26dJPH3MPAe2TGNMXuyZWYFcrqrLduXoT/0CdWwgk6eNoy3VV2AJZjC8/wy9SrQo8QuB8SBt/wE3FC8c7zcwW4LPH16dwy6o= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=prevas.dk; Received: from AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:3f::10) by AM9PR10MB4152.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:1cd::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.21; Tue, 13 Apr 2021 19:38:35 +0000 Received: from AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM ([fe80::edba:45:89f8:b31f]) by AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM ([fe80::edba:45:89f8:b31f%7]) with mapi id 15.20.4020.022; Tue, 13 Apr 2021 19:38:35 +0000 From: Rasmus Villemoes To: u-boot@lists.denx.de Cc: Christophe Leroy , Wolfgang Denk , Stefan Roese , Tom Rini , Rasmus Villemoes Subject: [PATCH v2 0/2] powerpc: introduce CONFIG_CACHE_FLUSH_WATCHDOG_THRESHOLD Date: Tue, 13 Apr 2021 21:38:25 +0200 Message-Id: <20210413193827.2632540-1-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.29.2 X-Originating-IP: [80.208.71.248] X-ClientProxiedBy: AM6PR08CA0002.eurprd08.prod.outlook.com (2603:10a6:20b:b2::14) To AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:3f::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from prevas-ravi.prevas.se (80.208.71.248) by AM6PR08CA0002.eurprd08.prod.outlook.com (2603:10a6:20b:b2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.16 via Frontend Transport; Tue, 13 Apr 2021 19:38:35 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d289999b-7218-418d-5487-08d8feb3ba76 X-MS-TrafficTypeDiagnostic: AM9PR10MB4152: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M16onBJEcBAPF36+2S7SsBRF0lzINPb889u30I1U0XiP7Q11FCC9D8tK+xSNGtz3s6IN5UzvQe3WWeO99U0w7eY3D2x6SNRQcUpJShkSSWf/l8u1bveiTjQwWDTVNwFFw/h4NBdDzjgekfTM7N0ospx4cT9ZotTSQ/fTCxfFsKQJCxxmFKDxFO0CoeV+Y/xj2356wnxbDa1viCLjpu5wGaAf7PBUhUbDkIM42AVzDED7TVtBpAnwaCOzx71G6jqIGHr5O/V7yjClYa+gLdMhiVEQ5fzmXW7WfUzX4YZJywuwuaOYXs2gbz9jYglP1cyYDOnBMF2YtS21aYe15cMsO2RS1aJ3iNrKYIbbkfibGGKTMUBM+MslgQHY62FxEhdriOBJhVhiVBgoGgBUc0fzrSiD3Ed6ods5Ol/gCBUw43mLe09n6hBGqZuQux4qWH5ZWNpWRcpcRGeqsPmgtwiueOxRZVKjSJvlkgWqYWDmKCBa/9AwEAdTjJOAavng8coZ7Gt/wE5kk1LUrknUWW5QDX90SsAhCVBrG0hA0x4LkzKse+CGiYRk2S3yD4ZlHfLccV1UvdVAb42PxaS6ygmczpHhpClRj0hrAvKxw004tanOAsyohvdCrQ4wXIdyHERSHnZzD42s/11dtcHoVbWba4vA23mvvurXXQI+UECsdI4vcoBWK9318gNhIQhLf6hnM1jfwNoVEh2mTSuoLdHPV3xt2h6sYaNxu/DCQ+X+ZQo= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(366004)(52116002)(66476007)(54906003)(6512007)(26005)(44832011)(8976002)(36756003)(8936002)(2906002)(107886003)(6506007)(66946007)(186003)(498600001)(5660300002)(66556008)(2616005)(1076003)(4744005)(16526019)(6666004)(966005)(86362001)(38100700002)(38350700002)(956004)(6916009)(83380400001)(6486002)(8676002)(4326008); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: CcsV3AJtCbesKMmP7tpls1eRWlL4YM8RMJEFpkVAri7mCrJVHz/LLCScdyckgSX0D7ZnaUzsriZ586JSMQidDRcPYNu6GCXyfUBWP4/9apeoHnCfbe6qSRgQfy/serlyc76BdJsQfkv58huWhlBwbKn4+F1Ylizfs1shcSGhu/HwA+zB6NrvwMQRj0LUYiFKv7KO58nexonZ6lPaVJl0ZAzVdeKYfsTtSS0Po8da3aePpEngkXEl8XRE2bN+RFK4lGx5l+Y4dcyQiml5qDQTw61sBD4k8O1fQP+6kgCyIhnm/Vf8Li2SQTglmSlXzXp/FRNkJrM+c4YhwdAK/6b6D5BXbhVNEMCcY0IFNeUHJA2Fpdyqhltgz4udvkLvE1KmCn/qgz4PXUVqdGRNniHsNTXyN+h9qR21xp67lDwdxtZR9KqdIS07vFatDeu/DS0YTM5Ug1XobBdwE4/W+LgYSF8VKPlM9/UcZy6iY+Di0sKYxrzGFjg5nODXP2mnamDzw8clRbwY7mD6Xc03qouSQHmD/BjJwh/4KNT1YYwbd8FsGbtiZe1xFy0USXnw55ahuOo7UXQSHJDL38evOTxUnuOGIicZkNvOLdohVSz3s+4Vrjc2Mn313vfhYlz/iePGiN3C1psm4RSsdQrYgu+/custoKG664C+awLpaoR7+PMMbiXfBPIT2qEgeGqMdAmph3/rU6sqmWK+P723aTETKZit1SFqZrYJaVlCnEQVgDxjIaTPwKYdq4HSia7YRe+vmzi8QaCATNVLFn3KOX8+q357Av2/CioAh3nmjV1metAQ4Rc850C+pNiejFGQA22jTe+0V4Kjz2YxBUQMsrR6gIxQiUr5DZboBKuLWDyJ+XGMWNw7+EmKEJYC2ChWp849BwzM15ccRwUHGl0JjtqLbJcA38sGHj6M1huaisT57YtQ6SsYBwBj7LFmQm4XefuFBRNVC4d1/UF9qEgYTXvgKGK3Cy05XkJH7XY16Q7ZodgGELSI0VcNzgmYI8cNahZuxWeifoyp56pXExZKqbx6VWKjOUSWudV3P2OpPeYz6d/7gxux8DwNMhFxX05webXa2H02m+AfCe3rIDxqF1RnLcAc8GdoFzyB0/8/kSbKi/U67irHjE+MSLxfTisZANRnLVYqg2IxmEUv4gX3tgXLkl824dsLlD6p2ZnYu1uJTnS3Ml5tXo4nwGYc3lynzB4bJm/ggvk1NOaIFxedA1dReLYXF+b0+RuhTPv+3n1kDLZOTKwcuyikqfb8mpxS9iBoXnUU4fvPUrV2GwBbwIKpP7iTih21fctmXpaSw+Omeh5JQ8/yMp3IGTzyZtqPzzwO X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: d289999b-7218-418d-5487-08d8feb3ba76 X-MS-Exchange-CrossTenant-AuthSource: AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2021 19:38:35.5142 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PkOrum98EbX+Pr1JNRCgjUdAoaowO3xOmsU+/ScEch21jfEWL6AgoXc3qvUolBiscXc360VMKOuv9htM+Q5rWFk3QcxexWVEfPk+uIIJ9Pw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR10MB4152 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Back in June, I sent a patch [1] to reduce the number of WATCHDOG_RESET calls in flush_cache() to one per 64K. Wolfgang rejected that, saying that the threshold should be configurable. So here's a new version which introduces a config knob. When left at its default, the generated code is binary identical to what one gets before these patches. I stumbled on the CONFIG_5xx and thought I ought to make the config knob depend on !CONFIG_5xx, but it turns out it's better to just remove that piece of legacy, hence the first janitorial patch. [1] https://lists.denx.de/pipermail/u-boot/2020-June/414852.html Rasmus Villemoes (2): powerpc: lib: remove leftover CONFIG_5xx powerpc: introduce CONFIG_CACHE_FLUSH_WATCHDOG_THRESHOLD arch/powerpc/Kconfig | 1 + arch/powerpc/lib/Kconfig | 9 +++++++++ arch/powerpc/lib/cache.c | 16 ++++++++++++---- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 arch/powerpc/lib/Kconfig