Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4011447rdg; Wed, 18 Oct 2023 12:07:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXVBuemPept9RNPTT13ZkybjSPnTewzufu772AXBDZZKjJ5pmD5KNJ9QtIUVoLFf/z6kiM X-Received: by 2002:a05:6a00:1806:b0:693:4a43:1c7e with SMTP id y6-20020a056a00180600b006934a431c7emr6615661pfa.29.1697656072624; Wed, 18 Oct 2023 12:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697656072; cv=none; d=google.com; s=arc-20160816; b=qXBtTdzxr0dEuogI0US4r5fJ9iRS9/j/wbr8s5Bxl8B18LhhwK8eK7+Wv+yGdZdzFo JchK+fhnQHoU4mF/OHJZOvqfvdDMg7YhPyQh3SsJujarQVXIfEHLBGLRmEOqUGtLjspM 1VgndNegw/O5vyJkAGT7mPYzqtTpHji+wVW/BBrfS0LSCo3J4g7MsHd/jMkSAUpg/5zb wqjiPLE2mXOAKXR7qdgBs03QBkGdKqj9kf78zWU7YP+2WmzzksHAn6vmxrgzarTVmNfh pL+/4mchqkJuCETy5D+ODPG28DwDo0D/CJ66qIAvL1Ph8/ojMhsOtyVY/dcuogSiz7Cj chBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/7T63UFHo2QxZQJJnC9K/ZprAjRwwywsiaee/Wxi3/8=; fh=rczcezC4xl7RWuHdp3XfodIZLgAQHx4ggtooYM/aGGI=; b=oOTxjbOzis0lKuSr2udQuczVTDMUj+nosdH3mOn62HqHvVXz3RfFVKXAZqvSom+doY Eo3WuLgA/G3cp5OaD9mtE61QjX1oM9hidU1yOT9OdAvSarWTrP8OqSSo3yyBt/3FHRF5 v5+76qbY8V2NRd5H2eDQGOG6bj8GqjbZbGHDZm5dwdXGDNlRU/pwrMElNsso9eL4eX/Q fCitt9w9WO0Hyc6mnLYjjFVT6ei69xmAw93FOTj8rW8d2iKI9L8+apWg5yxmPnBqtOdc s88Zet0imti1Xq8kgluixtSBiiYT8MbJTMy6+5dQufL3K6/Bneg3Pdhpo260CTEE5VLE 90hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=OiQgogza; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u135-20020a62798d000000b00687427c1ac1si4576120pfc.25.2023.10.18.12.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 12:07:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=OiQgogza; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1C6AB81143DF; Wed, 18 Oct 2023 12:07:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231248AbjJRTHd (ORCPT + 99 others); Wed, 18 Oct 2023 15:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230489AbjJRTHc (ORCPT ); Wed, 18 Oct 2023 15:07:32 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BD5711A for ; Wed, 18 Oct 2023 12:07:30 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7a66bf80fa3so18854139f.0 for ; Wed, 18 Oct 2023 12:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1697656050; x=1698260850; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/7T63UFHo2QxZQJJnC9K/ZprAjRwwywsiaee/Wxi3/8=; b=OiQgogza0racz/81GhemwyeUfek2BI7m5m/yEPl381PAlvEq36CtB35Q9SqC/rgfr8 Pf0U3Pzz1FDA/J5xeRheFcdFCHap+xwBc1SBnowR71PgaHYYvsfWvrkj2ayS5s68Rsh8 IvV1VHc1AnXnBR1VcneGrjiCqS1lBnhIFYlws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697656050; x=1698260850; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/7T63UFHo2QxZQJJnC9K/ZprAjRwwywsiaee/Wxi3/8=; b=i4IbA1014sVl5RHXKZDU7lZu+tvadfgKhItagK4Kf2jcKaMRHt6jkTLrD6FBQZl2Rb 1MuYuLMnw3Kyy9ihhnViLx9PfHt6VSlkl7LEG0zuu9otDv77kPcKxvFRGJBLJ6pQRrnI hWp1EQWjTTtOQW8SKvaXaYxCFz+7FpRvwxIX+3DGI5vmF4FHpaxbsNGZieEoAMwY11sU gRa+moWUxfn89KDo/OrHwfYQF4YOE6INrP/eZQSL1xvz5xctj936VtyQzQO1VPiMIhH7 /DMXxPzXwZ3oI7SmqGqZRqFC3bMQUxtFfpbeeFAw3DtJk2qinquYB4LUelETWT+JNGKN DjrA== X-Gm-Message-State: AOJu0Yz8pPvyVkx//ZkIzWtBd1ZXgFHqoA02YO8y8Y2GEza6natGSsrU DPXrfDvV4+J8mEnpAHAtGN6Jsw== X-Received: by 2002:a6b:5801:0:b0:79f:a8c2:290d with SMTP id m1-20020a6b5801000000b0079fa8c2290dmr234365iob.0.1697656049907; Wed, 18 Oct 2023 12:07:29 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id 9-20020a5d9c09000000b0079199e52035sm269584ioe.52.2023.10.18.12.07.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 12:07:29 -0700 (PDT) Message-ID: <2ec50632-15ae-44c3-9851-02660584dd05@linuxfoundation.org> Date: Wed, 18 Oct 2023 13:07:28 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/1] selftests/resctrl: Fix MBM test failure when MBA unavailable Content-Language: en-US To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Reinette Chatre , Shuah Khan Cc: Maciej Wieczor-Retman , LKML , linux-kselftest@vger.kernel.org, Fenghua Yu , Shuah Khan References: <20231018075526.2251-1-ilpo.jarvinen@linux.intel.com> <9965dc22-16fb-cadc-2b5f-ff7c2c91a173@linux.intel.com> From: Shuah Khan In-Reply-To: <9965dc22-16fb-cadc-2b5f-ff7c2c91a173@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 18 Oct 2023 12:07:49 -0700 (PDT) On 10/18/23 02:10, Ilpo Järvinen wrote: > On Wed, 18 Oct 2023, Ilpo Järvinen wrote: > >> Commit 20d96b25cc4c ("selftests/resctrl: Fix schemata write error >> check") exposed a problem in feature detection logic in MBM selftest. >> If schemata does not support MB:x=x entries, the schemata write to >> initialize 100% memory bandwidth allocation in mbm_setup() will now >> fail with -EINVAL due to the error handling corrected by the commit >> 20d96b25cc4c ("selftests/resctrl: Fix schemata write error check"). >> That commit just uncovers the failed write, it is not wrong itself. >> >> If MB:x=x is not supported by schemata, it is safe to assume 100% >> memory bandwidth is always set. Therefore, the previously ignored error >> does not make the MBM test itself wrong. >> >> Restore the previous behavior of MBM test by checking MB support before >> attempting to write it into schemata which results in behavior >> equivalent to ignoring the write error. >> >> Fixes: 20d96b25cc4c ("selftests/resctrl: Fix schemata write error check") >> Signed-off-by: Ilpo Järvinen >> Reviewed-by: Reinette Chatre >> --- > > It seems it's too early morning for me so I entirely forgot to describe > the changes I made... doh. So here it is (nothing earth-shattering here > really): > > v2: > - Make checkpatch --strict happy. > - Remove () that --strict called "extra". > - Duplicate the referenced commit description in the changelog > to follow the commit formatting guidelines. > - Alter the wording at one of the references into the commit > 20d96b25cc4c in order to avoid having to copy the description > there too. > - Added Reinette's rev-by. > Thank you. Applied to linux-kselftest next for Linux 6.7-rc1 thanks, -- Shuah