Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5697625pxb; Mon, 14 Feb 2022 05:37:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2OZfQWCcL6XSV1FA0Y18bFibB1nUE/NnJwyPS7yy+1MAy7gAS1Qw+yA1eivwxqa1zdNlE X-Received: by 2002:a17:903:41ce:: with SMTP id u14mr14275827ple.49.1644845868945; Mon, 14 Feb 2022 05:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644845868; cv=none; d=google.com; s=arc-20160816; b=h21qvMMzLW7QMf2RWFrFnRhX8FXQk5WAtxms5V5JPDTJfj00rEbxrp16kY4PxmJnLQ gWr3fXfvldsQUQvhAohH5m1AP0vlFM5FzBLvYzJs98fnqyHuTThQ9fiK8reHbl8uhsgx qFriXFzqkJhjT0cdBWqb2Y9+IZQnyAVKNE8wiAebv7FYqtS3VD64HO4wJFR858AvrbpA UyBY7Mi5l6yLs7G9Eta03uA99lRtgcQAXr6YoVApdWtypONlsamm4y4VFr6GTdDCjLkg iI3cog0RiCuahHUr6KMCmagzPbebroOIRA+yPDzlHUL8pFeNxdC/XbXCVqgPX5rAUIhv 261w== 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=Bfa8NKJ66AaG5XA2+aWkSTSm4HHtiIWE39IjIhrlAVk=; b=o7qgkwvPk5/wNxpAPAX2zb/2PFE//+JlJwg8mQyrxp+dsIYoBJjDDbh0GlVVbbbTY7 +ln0jTD6dIqfN4htoKwg1CudfS3TrLjLXahVRBSmun6nb931G3l+398gymEJSZpog2k2 vc7qgZ47cSX75dvyeKBORCa1TgXRf82qH/p0Qh8eVtoaWSQ0kGGNpFHKKfCXqR4e1U2W gEPJ5bxTnArY+/IGAp/pKumAPJTyjegdQC6RYBL/NbH9+S3kQbgnZWfAWEKpLdo8DrYr UTvun3FtZYw/7TkyTVad993mzgDQ5iatAC0TkQ6zxHHigWd+2b4JUnfszrwvfRcBI+zd jBbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=faT7mfWH; 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 u16si12853019plg.209.2022.02.14.05.37.33; Mon, 14 Feb 2022 05:37:48 -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=faT7mfWH; 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 S1353926AbiBNNJU (ORCPT + 99 others); Mon, 14 Feb 2022 08:09:20 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233705AbiBNNJT (ORCPT ); Mon, 14 Feb 2022 08:09:19 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AAD54B85D; Mon, 14 Feb 2022 05:09:11 -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 870A01EC00F8; Mon, 14 Feb 2022 14:09:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1644844145; 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=Bfa8NKJ66AaG5XA2+aWkSTSm4HHtiIWE39IjIhrlAVk=; b=faT7mfWHnTdzSgditcakDZLhYSRjoh05y52NKwdmwEVm7whVeT+q6RthAaWRG1Ft+Jj/vr i8mvLGORI4j0SpGaj1bCQXzUPk2la74+U0xcmzLC+C8AQsAoKaQeLgGA6Y81ShPf08Ucug m6fVT6ecoyOCTV8zINM8FeHybRk9XFg= Date: Mon, 14 Feb 2022 14:09:07 +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 18/24] EDAC/amd64: Define function to insert CS ID into address Message-ID: References: <20220127204115.384161-1-yazen.ghannam@amd.com> <20220127204115.384161-19-yazen.ghannam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220127204115.384161-19-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:41:09PM +0000, Yazen Ghannam wrote: > @@ -1326,20 +1331,7 @@ static int denormalize_addr(struct addr_ctx *ctx) > return -EINVAL; > } > > - if (num_intlv_bits > 0) { > - u64 temp_addr_i; > - > - /* > - * The pre-interleaved address consists of XXXXXXIIIYYYYY > - * where III is the ID for this CS, and XXXXXXYYYYY are the > - * address bits from the post-interleaved address. > - * "num_intlv_bits" has been calculated to tell us how many "I" > - * bits there are. "intlv_addr_bit" tells us how many "Y" bits > - * there are (where "I" starts). > - */ That comment looks useful, why remove it? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette