Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp327160pxm; Wed, 2 Mar 2022 16:28:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1wPhfw2G60+XFvzJl69mDLHOXdYhGswOVpwHdxs6SawBrZBPbTGrauA2VJsNnQgaT4Qf7 X-Received: by 2002:a65:4949:0:b0:378:c359:fac2 with SMTP id q9-20020a654949000000b00378c359fac2mr12306418pgs.355.1646267333072; Wed, 02 Mar 2022 16:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646267333; cv=none; d=google.com; s=arc-20160816; b=0UUyI6ZDN2nvI7fU3lVEP8emFgqZiDDBP8fSSw8SXlBW+AknMNeJFqi8Pn2wYx7lHp FPHIEe5KK3SN8l3v3aYl3TKMP9rBY1wKpSHLPQOYZT/jCV8tl0dsB46POqIEtFJM87Kx gdoTPUhdWymAhF3Kx1Dx0GkTCQmbgGTMEzMrM2+AmG8O5Z45ybN9io1d11OeLzfVxtQv +ymHs5kbvaFwIXIxccNASHglmyMA1D+SkMwbiKTqr+yQ6pTgXk5Q3Uhi83JjAuHilTAj T0xj2PEYHU+rO6YC3OTyuPGdmmZ9GvaniQRQRjOT1+b0XlILxbMnbO64JS5Kt5CxfbbH HQPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3OzRtoPBXkiAfy8YEZghchEvFFgdKSo2fA+Z61c4cFY=; b=sO/+ME+UZinEoDLNcH8/CgVkCNjLWTyY9C2z3cvDxJevnw6KDN6r+zQmYrDossq2tM oeQmfosXy1oZw4nDSgtN8usffT7hP+eVxL6I+mBE8oaoRbd8y4jXtjuWEa3IMMQfEs6p VcInLuilEWuAV6SLAztoviy7lLCmHGC3kZ8Spfrg+WXqeXYVReT2M4zQ8GkxhM26kGvI s9+dr7gYFeCJzXEEmpLajYUSRtTZr6YMmZtHjmJFIbtddPvGXetsViDPLqr1pnziIqsB 4w335Lrwz2+QZm1Gpno1FI3MmbYF1UIqAcNUjPmHAGC11wvLZdnhIqneY0psF6OOrHUA VWhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=JMnuS1C0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id gf24-20020a17090ac7d800b001bc0498fa16si6530066pjb.39.2022.03.02.16.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:28:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=JMnuS1C0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D04E220B3A7; Wed, 2 Mar 2022 15:40:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237496AbiCBSQh (ORCPT + 99 others); Wed, 2 Mar 2022 13:16:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242211AbiCBSQd (ORCPT ); Wed, 2 Mar 2022 13:16:33 -0500 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 967D7BD8BB for ; Wed, 2 Mar 2022 10:15:40 -0800 (PST) Received: by mail-qt1-x832.google.com with SMTP id u28so583066qtc.4 for ; Wed, 02 Mar 2022 10:15:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3OzRtoPBXkiAfy8YEZghchEvFFgdKSo2fA+Z61c4cFY=; b=JMnuS1C06Jl3OgIq59SU4T+8RZuEZ0QyddEZduLhKQvwCJwR9mf8+dZDenEyg1dQjA dngaF2VORflddaBD5L/IXSOXojG+4TkExjtq6cGKlzkrH/HJMALz8f0qeclONCWVP8b7 rqBw+WXnmwk7NFWTWGLN0QqtPH0iwgs1WYp9Xyq/7UWDu/DYYWUGVfr614Vg6xh4bUTE HdldoJY20rcfqepFc0AxSvPmjXPYBtlvcGZg2p/TrS1YpeVNJcjI8AMDhFnDsMAhOsjz 92FwCuDdkaC99CEUwxJEDmr1I+Jeams6bkb4ZBvTS8dapzGAG8hP2ky0zifp8Tk7PCAM vSQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3OzRtoPBXkiAfy8YEZghchEvFFgdKSo2fA+Z61c4cFY=; b=FXgEROto/gdivmrd6hGqVT6mklzAt892xCLozgagB71eRR54hBVtLesT99Q5lzjaC/ lqpITHreGd4HE1RlWgHbhqo0kqC2gMkBOWH80VyxagnGk2SWN5ChbnOTWUMXy+CIwA+P Mt48Cuio4Pb9Fy+maIpdZKVtmmsepEc64YsS6N9yLQYtJW95fOex1WXFm+yXfay0zGqA iwsrxBiWNV7FrFnbZT6IfaYciXFNIKAw5rUjcO5dYhAbinRhevsY3EJvDYrjHnBEV+bK fZpBUjwiiFUsFq7/AJVQewzsBu7cUM5H17v7Qw46OEhr8UcIiL/MtdFBgLEyO7gURg5q kh/w== X-Gm-Message-State: AOAM533AGRA/mSPFjKrO0ztfvLVagT/paKLb2q2qnwF08XH0iqTjbcnr fpz5BlCDJQvFvAeObfpj4+RSZ/fJRVslcSHr6klPQA== X-Received: by 2002:a05:622a:40b:b0:2df:9e4d:a58b with SMTP id n11-20020a05622a040b00b002df9e4da58bmr19254017qtx.309.1646244939663; Wed, 02 Mar 2022 10:15:39 -0800 (PST) MIME-Version: 1.0 References: <1646242689-20744-1-git-send-email-vijayb@linux.microsoft.com> In-Reply-To: <1646242689-20744-1-git-send-email-vijayb@linux.microsoft.com> From: Pasha Tatashin Date: Wed, 2 Mar 2022 13:15:03 -0500 Message-ID: Subject: Re: [PATCH v3] arm64: Do not defer reserve_crashkernel() for platforms with no DMA memory zones To: Vijay Balakrishna Cc: Catalin Marinas , Will Deacon , Nicolas Saenz Julienne , Anshuman Khandual , Mike Rapoport , Ard Biesheuvel , LKML , Linux ARM Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Vijay, The patch looks good to me, just one nit below. > -phys_addr_t arm64_dma_phys_limit __ro_after_init; > +#if IS_ENABLED(CONFIG_ZONE_DMA) || IS_ENABLED(CONFIG_ZONE_DMA32) > +phys_addr_t __ro_after_init arm64_dma_phys_limit; > +#else > +phys_addr_t __ro_after_init arm64_dma_phys_limit = PHYS_MASK + 1; Since in this case arm64_dma_phys_limit is initialized during declaration, it would make sense to use const instead of __ro_after_init. Consider changing the above to this: const phys_addr_t arm64_dma_phys_limit = PHYS_MASK + 1; Reviewed-by: Pasha Tatashin Thank you, Pasha