Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp74737iob; Wed, 11 May 2022 09:50:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZQaywUCCnXkjPBXcYU0TcWW2wixwf5Mj6B9uyJ+Gj2MIZqEQm5KGfZV4E8fkx1u/9j4w4 X-Received: by 2002:a63:6a86:0:b0:3c5:e6c0:cb9f with SMTP id f128-20020a636a86000000b003c5e6c0cb9fmr22293953pgc.365.1652287836157; Wed, 11 May 2022 09:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652287836; cv=none; d=google.com; s=arc-20160816; b=lPrOcXyXI13t6hBNHsy8pqA5yEYKo4VOgzGdHAp5DFp6LLrYRDmmVOTFHLvXSdtdxM IC7boDA0m11WUd0EsjY/iu0zVhBg2dYHkMJlLSYsRT3HzvTaMzoUKrn05OiAyGh7S5Eu JpS1t1zHGNXpYcAqPZyVA4RSsFeMIXBWfchy/HxYI2G2y7ER5Eb7otWqUo2gfBTucXEF XCXCbfPtNxFeVWeYqJH1zrbEQEKuSK3U+vMg3UdTAm5OyZw6c7iPH4P/mZ/kWgEvFWmd w144YUFNr7kH6UVuF8gmUf6pkxjP2tf66XWxCaCJacQ8PoFcs2pKhwjQhIoQiTTq2tqf P0WQ== 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=VEp2t13QqBjlm/ZQxi+DnPO1+jQii+Zbpf8zWxlnnl0=; b=hD/Rc/os91pIK664SJ9EmTGBB5WbAVu13L0Qp0tzSGw/dVDraKWxZI9FUr3Fvx/kvj d6BkXZb26TrHedb0k+7wvtXLcN2106MmJpKz6YO8SJrRMY2uo+POdYtyXNHqq/IJ2i0d ietda/ybuL94n4z2dN7/S16ouYU2jdYduXOdxx38hjN2NyjOIzOwACPJxeGY8kcMikCI 0lgqllpvTwPSXyD5Nm+WOxDNg0FmngSfpl+LNnjhpNcotUwdqhBYA6RHISCRpoodwdKY vQQ7DydLlNMCNxm/ZrgtI+g3R8e1+DB/Jpgm/5y1h/3YGAqE88vicJ6ZvTiaXUaDQ/Nn PltA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=GIcHGpSH; 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 b13-20020a63930d000000b003c64ad569fdsi173521pge.674.2022.05.11.09.50.24; Wed, 11 May 2022 09:50:36 -0700 (PDT) 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=GIcHGpSH; 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 S231909AbiEKK1y (ORCPT + 99 others); Wed, 11 May 2022 06:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239340AbiEKK0e (ORCPT ); Wed, 11 May 2022 06:26:34 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 060AC289B0; Wed, 11 May 2022 03:26:29 -0700 (PDT) Received: from zn.tnic (p5de8eeb4.dip0.t-ipconnect.de [93.232.238.180]) (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 4CDDB1EC0531; Wed, 11 May 2022 12:26:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1652264784; 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=VEp2t13QqBjlm/ZQxi+DnPO1+jQii+Zbpf8zWxlnnl0=; b=GIcHGpSHKshTcEogyx9MHmP5tZbnef7UvraEy3lU7NVYz/p/8IkqapaeuIAFISMxxKc/RW ioVLi+L4F6qnd0IJkflmfDtGERwaqh1iJOUMpBZIT++sUTSj5ZmCioV6XtaufMOQKo6N/T OBZOj4BZd6ZMfXSqugsKoWBpeYvzcsE= Date: Wed, 11 May 2022 12:26:27 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Smita.KoralahalliChannabasappa@amd.com, muralidhara.mk@amd.com, naveenkrishna.chatradhi@amd.com Subject: Re: [PATCH 02/18] EDAC/amd64: Remove scrub rate control for Family 17h and later Message-ID: References: <20220509145534.44912-1-yazen.ghannam@amd.com> <20220509145534.44912-3-yazen.ghannam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220509145534.44912-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,URIBL_BLOCKED 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 Mon, May 09, 2022 at 02:55:18PM +0000, Yazen Ghannam wrote: > @@ -251,6 +234,9 @@ static int set_scrub_rate(struct mem_ctl_info *mci, u32 bw) > struct amd64_pvt *pvt = mci->pvt_info; > u32 min_scrubrate = 0x5; > > + if (pvt->umc) > + return -EPERM; Since this function is testing families, it might be more straightforward for the check to be: if (pvt->fam >= 0x17) > + > if (pvt->fam == 0xf) > min_scrubrate = 0x0; -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette