From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 300CDC433FE for ; Thu, 3 Feb 2022 14:09:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351018AbiBCOJm (ORCPT ); Thu, 3 Feb 2022 09:09:42 -0500 Received: from mail.skyhub.de ([5.9.137.197]:34426 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243066AbiBCOJi (ORCPT ); Thu, 3 Feb 2022 09:09:38 -0500 Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 0F0401EC04C1; Thu, 3 Feb 2022 15:09:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1643897373; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=coc9lO9lg0vxKzE3zJP7qZ/jv6rA7rh9wy96xSxsnSo=; b=IMG8vWmofGMy55CNhTdTc62MGhpLLTN3dcyEgt12j576BwiS25Ec+FuSmtHHy/Ngu8i0hD z332IQrtn+BvZvp42dC07F2/FdWT0u5G0MgnbRFP1Zi94PfmBIyZnhnAUqkzkKj5nwlfj/ n0PKMdI24C1UOzHLCayT+6BM0hV9CWM= Date: Thu, 3 Feb 2022 15:09:32 +0100 From: Borislav Petkov To: William Roche Cc: Yazen Ghannam , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org, Smita.KoralahalliChannabasappa@amd.com Subject: Re: [PATCH v4 1/2] EDAC/amd64: Set memory type per DIMM Message-ID: References: <20220202144307.2678405-1-yazen.ghannam@amd.com> <20220202144307.2678405-2-yazen.ghannam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 03, 2022 at 02:19:19PM +0100, William Roche wrote: > As we are moving the dram_type cached date from pvt to umc for family >= > 0x17, should we also add a small comment for the dram_type field in the > amd64_pvt structure to indicate that ? Who would be that comment for? People who are looking at the code, so that they know which is which? > Something like that for example: > > @@ -385,7 +385,7 @@ >      /* place to store error injection parameters prior to issue */ >      struct error_injection injection; > > -    /* cache the dram_type */ > +    /* cache the dram_type for family<0x17 */ >      enum mem_type dram_type; > >      struct amd64_umc *umc;    /* UMC registers */ > > > Just a suggestion. > The code looks good to me. > > Reviewed-by: William Roche > > W. Btw, I'd appreciate it if you do not top-post. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette