Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp287229pxm; Wed, 2 Mar 2022 15:29:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJZDkKRjVCjYo1JYrQpERxWUjTQClMjPFYCAsP0yxWwr5L4HvS9ahDOGG6hr01xBCg3i9o X-Received: by 2002:a17:902:eb91:b0:151:5c70:418c with SMTP id q17-20020a170902eb9100b001515c70418cmr20509398plg.34.1646263773515; Wed, 02 Mar 2022 15:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646263773; cv=none; d=google.com; s=arc-20160816; b=Lep7pA94g2oeMH+SKuWTWGRLPySKdm+MAvv6fZogjUhlqEPDNWU9k7UZhWrDqvFc56 sXOeebY8lCV7J9eKZgBLngWWPj8IJQarNuNdaIITSXkY1DWsLd87m5Itys9ocAyCNsQB +rKSiqf7nro1GlbB3iukpVREd6v0PQt+Vd/5yhHOpkEtRA1etfqqWYA0aiTiV34FIvs0 nMFceIc9MdlD6qOJonQN86xd0S6nWIsjAXPdWPrkpmMmqFt9L+2dY1yWlmUER8K+ZVaR kexgTiX2cfb8k77J/Q1uDp5SJVCEBlB8pu72pgpBhcbvlEdecy807aSKQ5KwNCFmi5qz hPhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=nGnrN6wZvEIMXigwO2qniJwHemfc6PMUGGJtDX7QpyY=; b=AYgpV6ZgeysRM9Pk4aQ658KG4Z70rGhyAWe2CduRoVcmuuhqhwBJL2BfuXFf51UBR6 scY/0/xzx1kuF0K5aknn0l8TnKl/xLVjVxTg00XBwq1+zJmA7muAZOEz0Bw+fjCry5Pd dvmGfS24XBmCjEWGGpTJvxPlY4cwq/M2WZJvUu0+ntI/ZQo/eV2we0LOeN01TDQn/FS3 ugSCg6HDZzCb8wrPxBWXowFztIvmQgZoZfFXrlTM4SmafkGG3wwOiRufeM+6pLWZx/AO 6WXGX5wNOJc9EBgJLturJnYIyegngL7NFh0B2MdV4nB4M1KhYhVpDugXRdPrtp0oh8Bk 1Hog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=dAFrxi7X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v12-20020a17090a458c00b001b9fbccf90esi6366179pjg.141.2022.03.02.15.29.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:29:33 -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=@linux.microsoft.com header.s=default header.b=dAFrxi7X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC58212B76F; Wed, 2 Mar 2022 15:01:15 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240741AbiCBUm1 (ORCPT + 99 others); Wed, 2 Mar 2022 15:42:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236431AbiCBUm0 (ORCPT ); Wed, 2 Mar 2022 15:42:26 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BD5BFD64CC for ; Wed, 2 Mar 2022 12:41:42 -0800 (PST) Received: from [192.168.4.54] (cpe-70-95-196-11.san.res.rr.com [70.95.196.11]) by linux.microsoft.com (Postfix) with ESMTPSA id D826220B7178; Wed, 2 Mar 2022 12:41:41 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D826220B7178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1646253702; bh=nGnrN6wZvEIMXigwO2qniJwHemfc6PMUGGJtDX7QpyY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dAFrxi7X3t+esiOuFgK3Tzk+rFkAf/KzrW80FE0S6od4CLcVjt8fIFLXrWsqVIvoD 1FwuoMUnCbXzzT5sFHrS8IJ06B3+EjMmsyLwJHJ+b4Lnqq+Bqmuti1kv7BnSdbpmY2 nSpmnX/8MenODANPuc4P/GUOSnd/IBCfHGjKLm/g= Message-ID: Date: Wed, 2 Mar 2022 12:41:42 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v3] arm64: Do not defer reserve_crashkernel() for platforms with no DMA memory zones Content-Language: en-US To: Pasha Tatashin , Catalin Marinas , Will Deacon Cc: Nicolas Saenz Julienne , Anshuman Khandual , Mike Rapoport , Ard Biesheuvel , LKML , Linux ARM References: <1646242689-20744-1-git-send-email-vijayb@linux.microsoft.com> From: Vijay Balakrishna In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 Thanks Pasha. Catalin, Will, I can generate a new version with suggested change from Pasha. I'm fine if you modify. Thanks, Vijay On 3/2/2022 10:15 AM, Pasha Tatashin wrote: > 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