Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp805465pxp; Fri, 11 Mar 2022 15:37:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMXqdGj3njBWX97ibggeZlfzWFJgTWDPyTpjIm+940nCGbEGa332bj6nNVkLPf9FInQ0kD X-Received: by 2002:a17:90b:17ca:b0:1bf:6188:cc00 with SMTP id me10-20020a17090b17ca00b001bf6188cc00mr24684472pjb.2.1647041868758; Fri, 11 Mar 2022 15:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647041868; cv=none; d=google.com; s=arc-20160816; b=TkKieH7o3xaLDrE5OJEySm+r9IUMjiIeE6kf7Sj1Prp0pQz9uANOPriokFE4qxRxsu tFK/kZGcB03SaJ4Bj8ygG17GYcn73aL9WOJryGkKix773IQcCJraszVu8Cn/R8EJegAQ +aQwS/EI5RX4iqBh+UE9wXNrSrWK7M0fHw9RlR5COi6btngkCAg+lbEc4Ib0n7mgNOOd FDHhFx6Okf8xVdiRT/s5MtmndpRsrQEELJzPyPdalrDgV2m0MEreKzNqII1++V9lcXek fcMG1loseDplDb1QR6EZwjLMZVMEfrUDiSfGorK5WyzjVRF+70h9ZMwgzF4FitCtFJO2 Kv3Q== 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=JpIq6ekrJpOUTsg6cHFprI2/5RJXASUAuEdVc9D8S9k=; b=DJ/mOQMBLGQc55UyYp24+sy9mEuC9YcAEEXTyHWuCq1tWnbJ0t45I1wfRwTjVxBBla w8J9HdSgPqDuUIZaRtfm0syDsSCGvPAc6K7Pa8sCvLnzbRgTQ2OeMAP+5WFOPV6o859R EL+B8mfQEea5NlGVs8b2k4iB+LsrIY2B6KAiRuRN70nb1sgqPR9QNaYZZR6fHioOCNzs lb+gsm3UFhdykGfx88BYmwZB78b4O3ENbL5pLGDJm28ABnIN+5WEHhLEBaxO1M5REjkv M0qhucpwiwPXLg56qL6ep8MF1wOSXex2zTNXoeGz56rpWiHyhp1A0ivkSJKi0lmDPc5J Tctw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=b9Q5VbeB; 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 g2-20020a17090a3c8200b001bf07c5d673si6111539pjc.113.2022.03.11.15.37.35; Fri, 11 Mar 2022 15: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=b9Q5VbeB; 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 S229579AbiCKX1l (ORCPT + 99 others); Fri, 11 Mar 2022 18:27:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiCKX1j (ORCPT ); Fri, 11 Mar 2022 18:27:39 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D2205EBD1; Fri, 11 Mar 2022 15:26:35 -0800 (PST) Received: from zn.tnic (p200300ea9719388a568d7c698b997aed.dip0.t-ipconnect.de [IPv6:2003:ea:9719:388a:568d:7c69:8b99:7aed]) (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 D26331EC050D; Fri, 11 Mar 2022 22:00:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1647032444; 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=JpIq6ekrJpOUTsg6cHFprI2/5RJXASUAuEdVc9D8S9k=; b=b9Q5VbeBECyqG+BpOY6zgOn2mC7w664Y24poCqiTNluUNb3+a2IKUBm+6knRfO1Slpoa0N mLGklLTHZ577DWjTJYee6rzJcpLDCn9eWlGF74beKl0nHq2e2gRDgvyefvo5XRTRLYW9yV LeQlbFPCubLIGJJaDXqLsWUBPcIhZuc= Date: Fri, 11 Mar 2022 22:00:50 +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 16/24] EDAC/amd64: Define function to make space for CS ID Message-ID: References: <20220127204115.384161-1-yazen.ghannam@amd.com> <20220127204115.384161-17-yazen.ghannam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 Wed, Mar 09, 2022 at 10:25:22PM +0000, Yazen Ghannam wrote: > I guess this could be "addr = func(x, y, addr)", but why not just operate on > the value directly? There isn't an error condition here that's obvious to me. Because when you look at the callsite: ctx->make_space_for_cs_id(ctx); and compare it with the version I'm suggesting: ctx->ret_addr = ctx->add_coherent_slave_id_slice(ctx); my version says exactly what it does: it adds the bit slice of CS ID to ret_addr. You don't even have to look at the function body in order to know what's going on. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette