Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7617584rwi; Mon, 24 Oct 2022 17:45:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7qHSWw/ES5f14ZGxkWoMvRgqEEKs0gc1vacMgxRTWGPcLnWNgYjVPDVevdU2WiKDIto+sy X-Received: by 2002:a17:906:2681:b0:783:6a92:4c38 with SMTP id t1-20020a170906268100b007836a924c38mr30473555ejc.75.1666658707112; Mon, 24 Oct 2022 17:45:07 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv11-20020a17090760cb00b0078c37681f89si1439317ejc.650.2022.10.24.17.44.41; Mon, 24 Oct 2022 17:45:07 -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=@intel.com header.s=Intel header.b=ORxgEXez; arc=fail (signature failed); 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231161AbiJYAdV (ORCPT + 99 others); Mon, 24 Oct 2022 20:33:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230499AbiJYAdB (ORCPT ); Mon, 24 Oct 2022 20:33:01 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B71732053; Mon, 24 Oct 2022 15:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666652260; x=1698188260; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=QG/H4vT6f/BBCHoPPV9+mRw3d6eVatVvZ+zJ5W62oAk=; b=ORxgEXezY29xJlTcYZCBzR0d0GE3m4khmNSUMRCMDpQO7r80JY7yJ23W +rhJHHRLhpJzsLgXNasjNdhCwcJcZ8asvG/lAeEZWSYaC6RssKX+JZJ55 X14J+brVaG4Q1KObcTryp7OrZYtSl6MivHys/0sJrvjmsuNru//wA8TtA B2iqz9moo2bkcGd8S4K1XyMKVn3Dz3dKNSoTEgCumvSCtm1UM61ePu53L RNkdkAJBgaN62HWswuWT5pjtz8G7iUAVF1PioSUysEfl65t7t8Zaymrg8 HBRFvj9wNVtbLOLw7BJDMexvaEvRvDQkwSjCdPNRvhULBJdufO+eJdK0T g==; X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="393855468" X-IronPort-AV: E=Sophos;i="5.95,210,1661842800"; d="scan'208";a="393855468" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 15:57:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="756732329" X-IronPort-AV: E=Sophos;i="5.95,210,1661842800"; d="scan'208";a="756732329" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga004.jf.intel.com with ESMTP; 24 Oct 2022 15:57:26 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 15:57:26 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 15:57:26 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 24 Oct 2022 15:57:26 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 24 Oct 2022 15:57:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lhWUGn0xGWm8Qx/b1nzrv8oEkce4BGcpBEbzcYx2UHZrEpI0YYzIXR7YFjOpT35z27BQFKsrcQ8S3ThQBKMAzxIis0JQrZtaatd5tKbq5e7q218zI7chd95bYh4Ge4C+OodCwjRZmlEaZc3tjvMPT8+L3rMk04390whnEOSg0JDpCUQ9s0tXWSRCYUSypxaQruR7YtCnPJBVRXCNSsZxnwqB3nYjgDMx3kOn2hITvNjDNAeJYmCw1OWBIKDtm/2ak9oG1LkuIpfj3jcf67LCt12iRkPMyrGOW0TWVjM4+s9CXkaI/Cyzzp2Nm1Ilv/RjfGfbv0KwjFF/xsyqMZC6tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Q9KxY31KsWILm7V6H70IFxuJmy4Nj42QKdXhIOk36z0=; b=b/6LTdCLtYS+P78y3fKqjTA8fStsgu+ohlbGvqLR0BeSrqopGxAmMTDwgNM63XrOgPJWFPK2FJvndW4Hq8KUnXXf3o/CGBTHLIVgBd30JzwqoiLWAnHqrz5xZPWPGtL9p7f9qsWvbAzoTK03GariaFmiR5xaDDAoSaW5W65nesNOA3v55lnjk5VuXjR9U2j5CwBTOKgn8Nm57ahu25e1fRYQ3sLnIMk5CbRsx/ByVoU1xZE86hiy6UGXZzA/aJxLGTz14WIsIKZVS/BPANukp9Z+9/Qo2KLswcNJvFv4dFLQa3Kvx6X1Uf5FT/zas6xlHVUrlLz1DDSSOyv1QrTCFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from BYAPR11MB3320.namprd11.prod.outlook.com (2603:10b6:a03:18::25) by SA2PR11MB4875.namprd11.prod.outlook.com (2603:10b6:806:11a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Mon, 24 Oct 2022 22:57:24 +0000 Received: from BYAPR11MB3320.namprd11.prod.outlook.com ([fe80::e475:190a:6680:232]) by BYAPR11MB3320.namprd11.prod.outlook.com ([fe80::e475:190a:6680:232%7]) with mapi id 15.20.5746.027; Mon, 24 Oct 2022 22:57:24 +0000 Message-ID: <238b55b0-7fe6-4923-ef8c-fb1cc1cd1c66@intel.com> Date: Mon, 24 Oct 2022 15:57:21 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH 03/14] platform/x86/intel/ifs: return a more appropriate Error code Content-Language: en-US To: Jithu Joseph CC: , , , , , , , , , , , , , , , , References: <20221021203413.1220137-1-jithu.joseph@intel.com> <20221021203413.1220137-4-jithu.joseph@intel.com> From: Sohil Mehta In-Reply-To: <20221021203413.1220137-4-jithu.joseph@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR03CA0074.namprd03.prod.outlook.com (2603:10b6:a03:331::19) To BYAPR11MB3320.namprd11.prod.outlook.com (2603:10b6:a03:18::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR11MB3320:EE_|SA2PR11MB4875:EE_ X-MS-Office365-Filtering-Correlation-Id: 49cc6d18-5cd2-42a9-5f35-08dab6131d56 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QfR6sikUoU3Pt6aIyExnfOg57lUn2PGzo8RX+g9NIrZfMlCaAsWSP+rISrsofAbjAQarwF7FpHOqoTDS365OpoZqST3r7ul+LImsvMRYOd3wNP3XpCW5PXyegW1mhUfois2dncdAuzomzmvYYlsZLa8emnqoMs2z+SGiXxZQBHwHdA2nPP5HIJ/xXt9k5XaaXqYzYkluWbBwdUK67z6JFvcASZWn8hH8vxrROK5xzTmhYpLnMoOGNGmZkl1u0HPKoH2i8CZnTx35w/K7mZOsvpQILPWQo8gj3uh2dHw/RUhg9Gygy6fET8OzdFEBtbi7nJrFpFE/lLePB5t5bTw0En8wYlGZ6lJsU4tQ3G9qUdV39yrm+ATFKj0mHUVl0zyl7ySEfWuUl8K+BJZTQTSDwyNHLAdxmnyC2+GyMjcJJHNfNYBKvq1KcJ99/Lw3solUSLjPw5oaGQI6ZSz86IGICNpKha46njlplXSBV2HcVcy115Xp4xLe8FuY4yXJCFvPPbQg6RAR3yOls6Nz7lI/YaUIs/L31fpHUm7cLLTQsubWYX/ZYTjGQlE5tXeW2KPbjpw9r9MMPiwqIA6x3UVfnz+3YuSimTFEuVD3arwEtgVf5GINkAzVPxMfQdnbrjg8y8oxle2CttIfHXqmOTUUUHgPVHe1fsRuL7hOttKy77llLtBmWbCGcIJJrc2incgmu1Wtx8yRrRYQOPtK4Os3RkShkpNM7wsGdO4o6/ttyPSeJreFm81Kd/tB7ZKAvvCRRaYf9KAmiTFZnfPVEKfB8qidIJQI6B9w2ZpUkOhZzPA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3320.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(136003)(396003)(346002)(366004)(376002)(451199015)(31686004)(36756003)(6486002)(82960400001)(5660300002)(4744005)(66476007)(66556008)(66946007)(7416002)(8936002)(38100700002)(6862004)(31696002)(86362001)(8676002)(6636002)(37006003)(2616005)(26005)(186003)(6512007)(316002)(478600001)(2906002)(41300700001)(44832011)(4326008)(6506007)(53546011)(6666004)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WUxwVld6RHByRlhUcTFZVHdVbExteUxYVjBRbHRHaGdIU25OblRlQmN2RkVs?= =?utf-8?B?dG05M1NZTFRNKzFXR1dLQ25uYjhWcnZRNGFMMU9GOTVxLzFTVlBiNjRRdEFH?= =?utf-8?B?WFordGZDdjFRYy9yQjczeHRmMVZjMnVhUzNkTHBJUW5OR1M0ZDY3UjdQRXlS?= =?utf-8?B?ZHJaanV0ZGk0azZzYVhtdHdISWdtZVBHdjM3QzhwV04xVEIxdE9BQjBHdmdi?= =?utf-8?B?andndE9Kakp1T3ErTEQrRnRvdGpnRURHWHhTNStUblk1QnY4SUxFdXRKVVFv?= =?utf-8?B?SWFLRzBZUXNiUnpRQjEwM0g3b3FMUFl0RnhsN3pFM0drTmN2SWdUQ1dWQW9o?= =?utf-8?B?NnVySXNib0owZllablNFTDV2dTNBTjZoaDV0Y3NGTVdXL1N3ejVKRzczVmg5?= =?utf-8?B?OXhPcHRaY01wdE5aMVFSRWp3UUkrZFJhVVJvMnN5WjBoY0U0YnNwbkNyVmxL?=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WMwclR5Wk5v?= =?utf-8?B?bTUrUFY0c0xmWDl6VExHZTRKdlJvUkpBallCd29adzFxRVRpUFNYaERlTjZG?= =?utf-8?B?M3llMzZDcTJ0VGFkNmFMOVFRdGRlWm55WVlTNW41aVZhT0kwbDNFRjErSzA4?= =?utf-8?B?ekFoalRsSWVEYkFrbDBKQmNWWmduVW9uYzJHNFVTWllaUWpONnNFeGpjVGMz?= =?utf-8?B?Rk1CWFpWMGRGZjhlT2xhQ1pBUDlyeGdJVndvZHdQaXdFMCtCU0pFZkF0TmRT?= =?utf-8?B?VjRXWTZPMkMvRWMrdlNsejdkdEtLcjB5ZVpINElNa3N2eG43MFp4WmlPZkNx?= =?utf-8?B?TVRpVStEd3dvTXNaVjNzSXJmaWVlM1RaemU5T3YyRDRGL3ltSFNLZG8zbG5a?= =?utf-8?B?UHRjbDN5S1JnL2lseXY3RTR4WXdvQllxWkorTUZkRVhZQ1BPT0tlNFdCR01h?= =?utf-8?B?TGtudlA3RkdjcHBUbDVmVUZwRWpDWHRBSFBXTiswYmhVZ3huYlRGRUlrSDJR?= =?utf-8?B?ejE3eVQ4am56MUFydXhYY3k1U2MvdjIzbkJweTI4R29oakJBVk5xVnpwV1VP?= =?utf-8?B?UjFqR0hJSWlnOUxFNlpLaDNaWWt4d2ZJY09STVJERmVQWFVyQ01vUVJoNGVt?= =?utf-8?B?OEoxMTlIUytVY3RKKzJGZldNdnBvTkd1K3lOT0hmN21rZ2hIcEM2WDFqWVN4?= =?utf-8?B?cEo4TzdQSHBjaHpDZWxUWml2ekRCREk0MUtQVlJlZFZTWVBFUVhrc2NvQUJx?= =?utf-8?Q?P12qRYjm4lMLRANXKagYmqzAp?= X-MS-Exchange-CrossTenant-Network-Message-Id: 49cc6d18-5cd2-42a9-5f35-08dab6131d56 X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3320.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2022 22:57:24.0586 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0Md5Dz8yPWGnZReHiWHD9hicG9OpKcSct+J6vjXyy9+B1HF2eY4qxNU2poWhWJZsJSqQDzqOGvqjTc9DTdmMCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4875 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 10/21/2022 1:34 PM, Jithu Joseph wrote: > scan_chunks_sanity_check() was returning -ENOMEM if it encounters > an error while copying IFS test image from memory to Secure Memory. > Same as before: s/was returning/returns > Return -EIO in this scenario, as it is more appropriate. > Do the first 3 patches need a 'Fixes' tag? Or is the idea here that the feature isn't truly enabled so everything before removing the BROKEN tag will be considered together?