Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3614643pxu; Tue, 15 Dec 2020 11:02:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIgrzbbVL/DjTyBD28jxPINk2S7paVEg4cIRvWHS4TW0NPepCJysskelcURvF/NFufBUK/ X-Received: by 2002:a17:906:578e:: with SMTP id k14mr7569176ejq.90.1608058935663; Tue, 15 Dec 2020 11:02:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608058935; cv=none; d=google.com; s=arc-20160816; b=VZ+RFoFbdTlt/sL1NWvGsxO6BvJaaOhryAbYE131aY921FfWkSvHnaTjtSNW5zXS9z StQurQmTn2FeCaKZr/46kr5y2dfD3UzRTe2ZBrTrg3UkwO10vCy88lfYSAWMKqCvwF9j +hew436lhhw9AudYwdLBoqAlvf8ZC15ULLtuurxtgqubPmvTj5yBgeGDXZQG0iGE4v08 tU2JmKOBziiyzHiI05dukahO7LlfdMyHbdM3V6DEAr+2zxFq5YZGlw8oKlpMDDrLdtP6 LaICTFS/SslFakRroU/lXGK96FkSUBokLub7aUWG+PKjQr6YU5G8EIkf7zeg1PBvIB4+ X9YA== 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=BZwPR5IScj0YRL8ObZ/33FAKWJRNV1DEIVj6adoM+1Y=; b=VpBN5+Zd6HmN13f7LWR9mxHaEW6ioQeyVhVajpW1UecRANSqRYO2uhc9Nm9VgwmKeg 1bvguCfK/tBI2UIb38xp5qG7fC2SsmDSfyfSMXfQVrQBRobAGd4sJiqb76zDMQ4Ff1Lv /zS6j43V6fF3MXOqkZ7xlk7sKpnsPqgwktWliha3jXU1vpred3ZJcsscxKDpaFvtNqjo JSY3JJdmq5dt1pYB1E0OdsjS96+UZkEdE+eHk86bSo+Q94XUln9CC8lWcvtrmbSiKRsg eXDBqlJ6hSsuCu0pdDssMDm1os/j8m15CxP5vZX1mqhFx19//OCMa7b0uNMlk4XJb3+A woHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=e0mhnX0m; 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 v25si1358331ejx.201.2020.12.15.11.01.48; Tue, 15 Dec 2020 11:02:15 -0800 (PST) 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=e0mhnX0m; 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 S1729637AbgLOS7L (ORCPT + 99 others); Tue, 15 Dec 2020 13:59:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730744AbgLOS6z (ORCPT ); Tue, 15 Dec 2020 13:58:55 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 690BDC06179C; Tue, 15 Dec 2020 10:58:15 -0800 (PST) Received: from zn.tnic (p200300ec2f0f9e009c14e1abc4cc14de.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:9e00:9c14:e1ab:c4cc:14de]) (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 D0CE71EC04DF; Tue, 15 Dec 2020 19:58:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1608058693; 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=BZwPR5IScj0YRL8ObZ/33FAKWJRNV1DEIVj6adoM+1Y=; b=e0mhnX0mZE69wKAOLYDmzK0yX0J1vlqODsFRR7/se6as9cOnrzOsp+wggjsC8GNeieMX+q Joj8GPTFScVXb0n2scjgpJt5S+EcSsMaB5OF5cEk+izW04AcJJL5NBcs2XRAtifmL208Eo fv6VvkWHAN0g/EJz9I0i9lNkCZonw1Q= Date: Tue, 15 Dec 2020 19:58:08 +0100 From: Borislav Petkov To: Yazen Ghannam Cc: linux-edac , LKML Subject: Re: [PATCH 2/2] EDAC/amd64: Merge error injection sysfs facilities Message-ID: <20201215185808.GE9817@zn.tnic> References: <20201215110517.5215-1-bp@alien8.de> <20201215110517.5215-2-bp@alien8.de> <20201215161120.GB2122783@yaz-nikka.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201215161120.GB2122783@yaz-nikka.amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 15, 2020 at 10:11:20AM -0600, Yazen Ghannam wrote: > Can we say "Opterons (Family 10h to Family 15h)"? It may also apply to > Family 16h, but I don't know if they were branded as Opterons. > > The injection code in this module doesn't apply to Family 17h and later. > > Also, Family 17h and later doesn't allow the OS direct access to the error > injection registers. They're locked down by security policy, etc. Yeah, figured as much after I started getting all 0s while poking at them with setpci... Ok, I'll fix that ontop - this patch should be only code movement and trivial cleanups, functionality changes ontop. > Related to the comment above, can this be changed to the following? > > if (pvt->fam < 0x10 || pvt->fam >= 0x17) Right. > Everything else looks good to me. > > Reviewed-by: Yazen Ghannam Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette