Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3225608rwl; Thu, 13 Apr 2023 18:19:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bwe48SqimK5C1BoKWug4RR2oh4rhZBKRnz4MbJwDxSFi+1UcJD2ztxZH5OmV+xlrn2pz+x X-Received: by 2002:a05:6a00:1903:b0:625:efa4:4c01 with SMTP id y3-20020a056a00190300b00625efa44c01mr6472330pfi.3.1681435174212; Thu, 13 Apr 2023 18:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681435174; cv=none; d=google.com; s=arc-20160816; b=bNDlnokSaJzXW5FmcwzerCpgOIHxfDlo94PG6KZQeDXuh7OShTRU4Ox6iRbYPEp/xN oS4xsq4tYcnAeluGPX2UoIqUQHR/UXietTWExeOPdpE5cszfW181kcsDp6osgRa6+UsG 7GupLrNf6qB23a7XrxN+nuOcdfV8nBbuNpvoNxOEJER9l99qRKZpISpKqn9ULsGNEiW8 fwb6bkjeyZyBYJQlaoh7Dqd4P/M20vseyfHutocZfB8fYhNWeyXEwF20dfJGHEY0QR64 EjL5mpz1PE5FtgnnKuwfgccifSAur24CK9L/A0PQUmmvYJrBl2sENysGkchwnz+Y7YMP XxDg== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=tFSlBIFfa4iYCx2BjtM1B+rQb8dlMLpuGpfiPxPnivc=; b=F0l3mYAZVcGU6+QJg+ctBAQ1eHCKVZxXfbBEB7KFSZfJLzUwfZhixUEcTb0L5UtFAz YL0oLVC4FaoV/XUhHoHd6G2cyTuhoqJkHRhvjUMxZ2UAEK6auCLUfXCCcbd5/QZjTmCh SAz0LDB/6pcSah1x0YtG1hlzOSZnwKAm4OoAshjGIktiAuArnFjHu3b1kzooLjxlHhEm k7AIXc+0zm+wU6pJKv5uyupgyNmr8wDgqxLI6rORX9nwYN7B3ewoQvksnm0MBnZHi4Bs yT/xt+CXIkrGOV7pMxBk4lo9j9uQq8TD0oIvAG+EFj3PbbXDGWBNzOguO3aW73kA0St1 drEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=oOhubN5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 185-20020a6219c2000000b0063b630df52asi946787pfz.252.2023.04.13.18.19.20; Thu, 13 Apr 2023 18:19:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=oOhubN5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229876AbjDNBRX (ORCPT + 99 others); Thu, 13 Apr 2023 21:17:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbjDNBRE (ORCPT ); Thu, 13 Apr 2023 21:17:04 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 160BA3A88 for ; Thu, 13 Apr 2023 18:17:02 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id hg12so2500485pjb.2 for ; Thu, 13 Apr 2023 18:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1681435021; x=1684027021; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=tFSlBIFfa4iYCx2BjtM1B+rQb8dlMLpuGpfiPxPnivc=; b=oOhubN5G3nXq7/4HNZpcWyoiaGVMQGb2CueCAuf+Z4WmVYDmTAZnNqAvrXg9n+fKp9 RO4ReEAWeN4LuxhT6sFW/EK+472lKLis0KUfYHQbm5CLlFnyGbW+w6m69oOGK5Z57Lko GtmJnUjFh3EkNXRM0rdq60P8pT5jzFuh4vylcuK1P8W/kC14DYTPD/lg2i4BdwJ1+0Rj lHEU+pgdDXbPVI2qNMvGOGbPGWQWNVnneHKG11CV2vIBxcD/hVwk/T3A0S/cTGDUbVZ3 nUT9ZjgmNpenprFfbjXMgOkcUlujgJHV4X1yw6iS1LMmLLh88xsg2SNH3M1dm35TWW6c 2xZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681435021; x=1684027021; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tFSlBIFfa4iYCx2BjtM1B+rQb8dlMLpuGpfiPxPnivc=; b=hGSMfQElxfo9L4+m2KJlY90eN1vRoWYfS+es4/FKPzygFHefV5IvUedE2ZF+EVCzJ9 Y4JyDO/Q+cQA554UHrSeQo/0gfeJ1T429ijR1pPYbBu7M2GDhnebQz28nG8+0AgOuDKd yM6H4TYKUDIUVsPi5Gw4CQs/cw++GjNreaPNDJFG6ckAonIGK5rNJ6GiSi6q81RZpB+u 6deKWo9447hG+e0D1KeUz9KgvvoMHd46TbAKrTveYoAxaGaurGI7gNXDi5tsFLBZ7x/q OCy8LVkd1nRpyRsUCYT44X0NfoAlZ1Yan8Zd0P/6KcEH6/Ve6Y9aCfPY1cB3XyVdT48p dcgg== X-Gm-Message-State: AAQBX9c/lQbIczR9Gr5GSn1TGxN0OSLqf0ODa8y/3varpcf0VVLz/UgS j8Q0qNd3PrZkUqtluz8mpg03mg== X-Received: by 2002:a17:902:c949:b0:1a6:3d07:af32 with SMTP id i9-20020a170902c94900b001a63d07af32mr1090823pla.38.1681435021425; Thu, 13 Apr 2023 18:17:01 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id jd9-20020a170903260900b001a69b28f5c5sm290311plb.222.2023.04.13.18.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 18:17:00 -0700 (PDT) Date: Thu, 13 Apr 2023 18:17:00 -0700 (PDT) X-Google-Original-Date: Thu, 13 Apr 2023 18:16:27 PDT (-0700) Subject: Re: [PATCH -fixes v2 3/3] riscv: No need to relocate the dtb as it lies in the fixmap region In-Reply-To: <9c90f390-92d2-4dde-8cd7-b50e9c858787@spud> CC: alexghiti@rivosinc.com, corbet@lwn.net, Paul Walmsley , aou@eecs.berkeley.edu, Conor Dooley , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Conor Dooley Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Mar 2023 08:33:45 PDT (-0700), Conor Dooley wrote: > On Wed, Mar 29, 2023 at 04:40:18PM +0200, Alexandre Ghiti wrote: >> On Wed, Mar 29, 2023 at 3:56 PM Conor Dooley wrote: >> > >> > On Wed, Mar 29, 2023 at 10:19:32AM +0200, Alexandre Ghiti wrote: >> > > We used to access the dtb via its linear mapping address but now that the >> > > dtb early mapping was moved in the fixmap region, we can keep using this >> > > address since it is present in swapper_pg_dir, and remove the dtb >> > > relocation. >> > > >> > > Note that the relocation was wrong anyway since early_memremap() is >> > > restricted to 256K whereas the maximum fdt size is 2MB. >> > >> > So, should this be marked as a fix, and backported along with 1/3? >> >> Hmmm the whole series should be backported, it does not make sense to >> move the dtb mapping and keep accessing it using its linear mapping >> address since it could fail for the exact reason the relocation was >> implemented in the first place and the relocation is wrong. >> >> Maybe we should simply add a "Cc: stable@vger.kernel.org" on all the patches? > > Yup, although hopefully Palmer can handle that if nothing else needs > changing. The bots usually pick it up anyway, but in general I try and put the stable CC on there when I see stuff go by. I actually missed it this time until seeing the comment, though...