Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp249329pxb; Wed, 15 Sep 2021 00:49:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrlBuB0YXiy9woTSmBT6D8YaekXUs2zibCOMERX1faav+0dIBEZWeS9ng+Jmm7UUxe2oke X-Received: by 2002:a6b:2c08:: with SMTP id s8mr17125763ios.216.1631692140759; Wed, 15 Sep 2021 00:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631692140; cv=none; d=google.com; s=arc-20160816; b=UoS/VtHYtX9ZX79p0TvuMFh7lLzds/IYvsVXRAO3p4sEgYe0urskW/0Hp2dXoec7Qb /j4BsHmAdZR9RrJ8hwGPp19rKzogC2avHlYzYYTSGnRTGw2plV2wHlRjVBJKFyLQgZyt kCDNXbCYpjB89+A9nFtJ/4pRYUTOy9ltMzfNqgwsNT3Svf8qlfqUzKQNNsSQTiOykVQL LQHN2SHMsGq7NlDtTfXNExrbcwXIeSLNF/k8tLQUk7l1tf2kg75JcKT6uInUgv1ZWV7w EH3KutacA+uTF5HMPhuPqCMhq5q3h5hCBybsRVwbrSooXMBObdLj3iEvZ/2RXw7Cuk5I XS/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Qpzzz/lLI8YxduEtvw8J4jcQZG+Ydex2/yZUI+MAruo=; b=dQEy/K9x4NIAeQiAd6sdc/N0ByPVaXw1PPV2coU4ZFMKb9jp6nAPRuwVyx3p9B8ww9 hbNOr818kMuX01KeOG3/BfaRNCLZRCVEL8Y8AZIXTJig6KwwR6P3Qrv6NxtJV3NugZ8R Q9iEnz7LRvtdBMNoAlSIKCbKJ203kyCvtP3UKBfjpy3XCGeR7Vulv86Ix/sLDjg8yKtL iCtmV2nUcg1zV/sY+k0y63Oduh36R9ZPAc9dwpHcitFwZacmLvc57QbdJhaNOzB8eMpm MtAOa89cPcPV/9ShpZdSpYnmPi45Fe8WBegziGK19iDwzQ7Ns23YZ85leHkwr9ipop+m I3uQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si13767033jam.69.2021.09.15.00.48.44; Wed, 15 Sep 2021 00:49:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236514AbhIOHst (ORCPT + 99 others); Wed, 15 Sep 2021 03:48:49 -0400 Received: from verein.lst.de ([213.95.11.211]:35267 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231364AbhIOHst (ORCPT ); Wed, 15 Sep 2021 03:48:49 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 056F668AFE; Wed, 15 Sep 2021 09:47:28 +0200 (CEST) Date: Wed, 15 Sep 2021 09:47:27 +0200 From: Christoph Hellwig To: guoren@kernel.org Cc: anup.patel@wdc.com, atish.patra@wdc.com, palmerdabbelt@google.com, christoph.muellner@vrull.eu, philipp.tomsich@vrull.eu, hch@lst.de, liush@allwinnertech.com, wefu@redhat.com, lazyparser@gmail.com, drew@beagleboard.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, taiten.peng@canonical.com, aniket.ponkshe@canonical.com, heinrich.schuchardt@canonical.com, gordan.markus@canonical.com, Guo Ren , Arnd Bergmann , Chen-Yu Tsai , Maxime Ripard , Daniel Lustig , Greg Favor , Andrea Mondelli , Jonathan Behrens , Xinhaoqu , Bill Huffman , Nick Kossifidis , Allen Baum , Josh Scheid , Richard Trauben Subject: Re: [RFC PATCH V4 2/6] riscv: errata: pgtable: Add custom Svpbmt supported for Allwinner D1 Message-ID: <20210915074727.GB20024@lst.de> References: <20210911092139.79607-1-guoren@kernel.org> <20210911092139.79607-3-guoren@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210911092139.79607-3-guoren@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the wrong way around. We need to design around the PBMT definitions. If we want to hack in support for completely broken SOCs that intentionally violate the specification it should be done after the fact, in a separate patch, using alternatives and clearly documenting how broken these SOCs are.