Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2895781pxj; Mon, 17 May 2021 12:26:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnc3k0OgeDNflsjsyisuCfDrlbiR9ln+YTkzAKycM64PCa1fdn7rGuhuWKq8OI48Vf4UUC X-Received: by 2002:a05:6e02:12c5:: with SMTP id i5mr1023628ilm.101.1621279577385; Mon, 17 May 2021 12:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621279577; cv=none; d=google.com; s=arc-20160816; b=dnluUdwnRrSG605Y+nBy3NjEmp+eBRdE4lc4uUhgoiqFv6SYU4NFiq8nQ4bhqFA9Pg WphMHrGpb4DV5LvJq+qEqjgb/xSqJgDRxGGQ7YZcfegtcT9cr54eglX9EeOifjCT7iI+ cev+7DrzP09LCT9PrqKmNgitb2Pb3kOIm/qPVCcxE9wInM4FHAW9lyQcsTqk16viuJIm wjJy3bdFbgm+Bh/YLcIlI/hI2Iv8BTyKb2UDH9f0C+gI2EjLzUNJX4nmvpgccY/WR9jh 3ASKJzJ8Irz60Cm6kE8zS2rtsYDep+uqOWtbL0P+UbJGGxbedrBuoIGhrAGC+f0Gus+6 Xx0Q== 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=4ZTxHuIXLkDq2ilVFphM2z7wrM4IP5A2RNR6g3B+MWI=; b=0y13N++fHJDc4EDHnRUjve4dC5DZxsc32hvq/ktYQrC8EKa/xSQbB5oBVOJQ0AawuP LDMkesJyz1ytkWyRRSNUtwhLG8MAK/kaXCyRKrwRZ6XYdOaJOU1GKKRXTVr7PNdbyDkj 7P4E0T+5uMFWKHImN8Y/UIxwaGsyXlVZH3id6PK7lE7vn7P3ZbQzPl2wEJYM3+oNzXgf ZMBIQT1C0SZI/TDgXGrhIBs3MH4lCM7MtLKLYEYvGd1+giq+6+Zd8601ksUWKldiT0CR 5OHO3KAjG4m0LKaU+P9cDyAOG//1jomP1axIZFLBFhsqqdNkk3bpDgfX+4B1g3lbx0DC /3Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=nMS3bRrX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b27si11129655jaq.105.2021.05.17.12.26.03; Mon, 17 May 2021 12:26:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=nMS3bRrX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234712AbhEQM62 (ORCPT + 99 others); Mon, 17 May 2021 08:58:28 -0400 Received: from mail.skyhub.de ([5.9.137.197]:42844 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233441AbhEQM62 (ORCPT ); Mon, 17 May 2021 08:58:28 -0400 Received: from zn.tnic (p200300ec2f061b004a70cca8b839c355.dip0.t-ipconnect.de [IPv6:2003:ec:2f06:1b00:4a70:cca8:b839:c355]) (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 CCFDC1EC01B5; Mon, 17 May 2021 14:57:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1621256230; 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=4ZTxHuIXLkDq2ilVFphM2z7wrM4IP5A2RNR6g3B+MWI=; b=nMS3bRrXZ7K9CZaH3CdMjqOW+HMOYJhrn8/mTQ3xMrRiMvTfrwImGNKZbyiX9h5DDEc2gl i7vjYpp2S+C+sTJykl5wmbM6hRm62wthSHoh4foT5h4lh23fBZDDUzQT6DNqX9DW0fyHwf 6eSwHfEDx/xhuLtNvzuX/WXAPv1DLF4= Date: Mon, 17 May 2021 14:57:04 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, tony.luck@intel.com, x86@kernel.org, Smita.KoralahalliChannabasappa@amd.com Subject: Re: [PATCH 00/25] AMD MCA Address Translation Updates Message-ID: References: <20210507190140.18854-1-Yazen.Ghannam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210507190140.18854-1-Yazen.Ghannam@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 07, 2021 at 03:01:15PM -0400, Yazen Ghannam wrote: > Patches 1-24 do the refactor without adding new system support. The goal > is to break down the translation algorithm into smaller chunks. There > are some simple wrapper functions defined. These will be filled in when > supporting newer systems. The intention is that new system support can > be added without any major refactor. I tried to make a patch for each > logical change. There's a bit of churn so as to not break the build with > each change. I think many of these patches can be squashed together, if > desired. The top level function was split first, then the next level of > functions, etc. in a somewhat breadth-first approach. No, that's great what you did and keeping each logical change in a single patch is a lot easier on everybody involved. Now, looking at this - and I know we've talked about this before - but: umc_normaddr_to_sysaddr() is used only in amd64_edac.c. amd_df_indirect_read() is used only by this function, so how about moving both to amd64_edac, where they're needed and then doing the refactoring ontop? You can simply reuse your current patches - just change the file they patch from arch/x86/kernel/cpu/mce/amd.c to drivers/edac/amd64_edac.c I went through te umc_... function and AFAICT, it doesn't need any core MCE facilities so it should be just fine in EDAC land. Or? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette