Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5511004pxb; Mon, 14 Feb 2022 00:16:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkG++WYf1HkymuH+BgCZwaKTOTHoxte3xC/kxrXR1yuAtRhOoVN7tCqVFo5IjoROkF3ogF X-Received: by 2002:a05:6402:354d:: with SMTP id f13mr14215354edd.289.1644826569895; Mon, 14 Feb 2022 00:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644826569; cv=none; d=google.com; s=arc-20160816; b=m0p0ttr4lAWUvX5YkIr2u2u8fKBCDTvYhPmcYFiH/+fChPELKxy9mbD1MNg1UJDvtC uohMZQUEFBUS6YWpdhpg2rVolBSyAmKI4K0tJ1LeDavc1iaMrc/M8u9WimUDLOamSv8B ixTIlhCdM5QcjdJwJ/6jveieYBMDY0uMpx2R0D8cy+OqYQbG2RaekmAfj0katov0SGeY DipkSan9OdcBlgaOLQXuX6U+BOumNzwhe+zCGeusRcyFxjwAS7NkGhcmkpjHU71lsk13 CDvvQ58kbh80qrihCbFEKgkxZ3fORUbOnoNurdvTV8HgmEptKN8QX5V0EsDBvEH2woVu 0LSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oR/oiP2+65T59bcpRG/IiQefT+dXNy/7dsGfjaAi0GI=; b=FoBNKETp5sYgg080M26uK6+jWcX5rmKZCljPf4vpnPE8zGiOxbw6zeuLTkvznbu+5Y Rj7nFTCHuxvPnA2PBwUSsR6pR1iXoLJRBVD80q5ffvFX8wBMHfJbwJtYMItqqsLV27t2 dRHDQuDV3JCD8eYJYesPUlX3ppGXuNYOM39IYMXiMP+xx0Rh22SDfci0eCApImyGjXzp vqQy99xsPdGeD2KOWUqI158jBAC0XP7rn5Zz/fHlIAOMEZzWoNyO9toKnThYqrNQ370x grx1NZUUNnsm5ivyitSdNJzzk4ly3mhSECPfqzfj2ddfC4TpXqyXYE64XT01ZhwBbhey acIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=GKGFboMf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd5si21655127ejc.218.2022.02.14.00.15.47; Mon, 14 Feb 2022 00:16:09 -0800 (PST) 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=@alien8.de header.s=dkim header.b=GKGFboMf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232139AbiBKTX1 (ORCPT + 93 others); Fri, 11 Feb 2022 14:23:27 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352839AbiBKTXW (ORCPT ); Fri, 11 Feb 2022 14:23:22 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A8E38F for ; Fri, 11 Feb 2022 11:23:17 -0800 (PST) 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 81A991EC03E3; Fri, 11 Feb 2022 20:23:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1644607391; 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:in-reply-to:in-reply-to: references:references; bh=oR/oiP2+65T59bcpRG/IiQefT+dXNy/7dsGfjaAi0GI=; b=GKGFboMf/wBRjfxFpYTqOyZBtfEICQqIy5As/LsZiwBlHRi5cAtkoMW5NKWyzYsWwRP1M1 ne0XxG0fO3brwcM7hTuIRJTbvxgt+IPPqu20qmTDSZvDtFt/GG0HZ+qBTBzjG7om+nlV4J W1qCH6lDn6Q/mPiOLq4Wl/1c/H4UgH0= Date: Fri, 11 Feb 2022 20:23:13 +0100 From: Borislav Petkov To: Yazen Ghannam Cc: 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 02/24] EDAC/amd64: Define functions for DramOffset Message-ID: References: <20220127204115.384161-1-yazen.ghannam@amd.com> <20220127204115.384161-3-yazen.ghannam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220127204115.384161-3-yazen.ghannam@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Jan 27, 2022 at 08:40:53PM +0000, Yazen Ghannam wrote: > @@ -1099,22 +1140,13 @@ static int umc_normaddr_to_sysaddr(u64 norm_addr, u16 nid, u8 umc, u64 *sys_addr > ctx.nid = nid; > ctx.inst_id = umc; > > - /* Read D18F0x1B4 (DramOffset), check if base 1 is used. */ > - if (df_indirect_read_instance(nid, 0, 0x1B4, umc, &ctx.tmp)) > + if (remove_dram_offset(&ctx)) { > + pr_debug("Failed to remove DRAM offset"); You don't need that pr_debug - remove_dram_offset() already has one for the single error case. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette