Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp79902rdb; Tue, 31 Oct 2023 00:55:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjChU1YyA2Aa16iMAax3nwCi/4kng4k+Y5Gtj7H2rJnX+xbP1zLU2qxGrex4SWm1OCjrg9 X-Received: by 2002:a05:6a21:778a:b0:16b:7602:1837 with SMTP id bd10-20020a056a21778a00b0016b76021837mr11408175pzc.29.1698738910244; Tue, 31 Oct 2023 00:55:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698738910; cv=pass; d=google.com; s=arc-20160816; b=ljg2dorf5HMfHsgFq5DrGQByCGBZ/w1J7LnYeOSOZaOrQytxKEgkhiCwNgHiSbPc+u wYMmhaxqJmFKy+c7t/F408pzck3SqQm5BZLjIHoz1EsvzWwLDRY9Dz5VYhBlhBSES9nE 7LOD2QjMlidr5pZH5ny31uA18I/YmGKa4kKarZyYIWlPLxP5A+01vXxheEDoK+oeefB+ G138/SPG5FJpwtH7dm95eF0NKj0n11SzE0M0Oxbvgx+vm8w1/do730W/nHXIblOaqevY 2tzd1OKifdZSyE7UMvhXbRQkKpxkn2Ifi2atYNp6Zc9cfAjxtM/ialu6csJtVZt0yG/q SWSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=RICAv0lYWkOkGsNXzoGsoxmODna1/4RPI++roDz4L4s=; fh=u7UYtwV0oqKvsXVdKw09BSyVyv1fvxSjgATMF0KUcPE=; b=XdRcMXXNGLwWYFSN8+YuzZZrZRaPBxnxH85JObEtFDOnz8vDttuZn/2AsoS4oHpRej mCeUY+2BUYYSMTK/H/O0PBfRNfTANQMPn4bc6Fxve8mF7oFpHSyuJi9PYbtkizRGNilx IzrSj3s7ylFVdLESk5yZRyN9L6Gfa2EFoI4mz/WDK7cE6DUFvKRAiUuacqLAZB+mcVg8 /ainbOPbrUL0ar4ZkHmdSvHEgeYeEZvzSU/QMx1p53c3Kh/D2c9s0HHla1vmbetZtUVt rG1XqU411Vbbw0QQ27BRWWmfoO+IEUb3hl+J324Uz6PgeSQNTJGWZoJOkomRWmcquTPk gLUg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="Mpiyng/D"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u9-20020a170903124900b001c7264c458dsi663278plh.181.2023.10.31.00.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 00:55:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="Mpiyng/D"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1DBEE802886E; Tue, 31 Oct 2023 00:55:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343853AbjJaHzF (ORCPT + 99 others); Tue, 31 Oct 2023 03:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343861AbjJaHy7 (ORCPT ); Tue, 31 Oct 2023 03:54:59 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2066.outbound.protection.outlook.com [40.107.95.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF54D126; Tue, 31 Oct 2023 00:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kQ+iJsRE4Mxsfyae96S/0BfC3MNHu5XE2Hqm/V7aaBWwpoDBXpk2Iv11uedHZRahav16NAMA8O4PoGxwSsvgbs4tAnNIjENATFnVNWuPul2vmkbf1k2nq/L6f7HPsHgu6OYI81vFy4iES1EQX+IzVteYpXpk+iYGAmFfDNUJCZDzpuqdPGp4+1GJkF6SwIX0gPQblVyk0x3Uve0yQ49WJBM0zHE9x1Q4c2qWtt65tGmcxBvH1tw5kLiO9c6n7o+a1QzNemev2eBCQilXLpTOxl1XN5WvmhlmCBhFputc2Z2dobMEh4oWB3tyKv1wVn42OLtr+BlA0ttoeRk1c70mRg== 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=RICAv0lYWkOkGsNXzoGsoxmODna1/4RPI++roDz4L4s=; b=ke8lYD+Fb9agP5AwzqXE5/kEHrlHAY6ON2eGJpO9F9Oyk/RYbMakQTJZqBGX9GZUuJJvM9NKkGmBumlvJ+HSuIgfKhFxOn+47D/CApJxYdlfbYvlkBqBgW+4TrEG8LDAtbPk1cykOks2OE5PRDqCmOEsz7eYRWJND+qay58Ilp440bJI34TjFMOUO6OL9hteqgRPteo/WcXf82C9Srk+JQJutmJM7t0Kn/uTPHHqOPWCfWvsghcDXX4xMrcdcCWvum7QxojWF4wjsmY3LkhTBOfn/2WmjbpFMKR5RkCLLpt5vvjuI9XjRSnxn8g3i2fh1ole3p7mS94biuWsX7sJDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RICAv0lYWkOkGsNXzoGsoxmODna1/4RPI++roDz4L4s=; b=Mpiyng/D4NC+Jjs0CVWiGZSXLj+WYHcv6zdxmfk4RGDbXMXV9IIEgNkkwp8SUv8sbBNhfEEjPDn3ULCqkPCb5osCzhgXe+iJRlrWwmd5PFms3jJOZXuGlsmCdG+dcFiyaDBt5EfY/fpNSIrCVchWIuAW+96xpAbbi1F7ezGMraI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5176.namprd12.prod.outlook.com (2603:10b6:208:311::19) by PH7PR12MB7890.namprd12.prod.outlook.com (2603:10b6:510:268::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Tue, 31 Oct 2023 07:54:52 +0000 Received: from BL1PR12MB5176.namprd12.prod.outlook.com ([fe80::ef5c:c073:d1f9:e649]) by BL1PR12MB5176.namprd12.prod.outlook.com ([fe80::ef5c:c073:d1f9:e649%4]) with mapi id 15.20.6933.029; Tue, 31 Oct 2023 07:54:22 +0000 Message-ID: <8f1b5075-6b12-4fa8-a173-804d4657415e@amd.com> Date: Tue, 31 Oct 2023 13:23:12 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] platform/x86/amd/pmc: Get smu version before reading dram size To: Mark Hasemeyer , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: LKML , stable@vger.kernel.org, Hans de Goede , Mark Gross , Sanket Goswami , platform-driver-x86@vger.kernel.org References: <20231027212916.1035991-1-markhas@chromium.org> <2b8335a7-4b9b-825-c1b8-84158aaf2c42@linux.intel.com> Content-Language: en-US From: Shyam Sundar S K In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:9b::9) To BL1PR12MB5176.namprd12.prod.outlook.com (2603:10b6:208:311::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5176:EE_|PH7PR12MB7890:EE_ X-MS-Office365-Filtering-Correlation-Id: e6ff52b2-b58f-420b-ea07-08dbd9e6736f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b6nl1DHRE8u87tlHwl+Uqu+eRy+AuvUqCjRmksX/gS0t15IhpzukBJiXQN/PLz3BSkpQjK0+1AKhWn1/1v6OxbfJXfRejh7Bfhc9EDoDoccv3jx8XqTwTXZ6TEslIf+CXenykxwvmDrCrbPy/Ikqzz52oG52K4OCjqvL94a58+6OCfCEuIdx1DCas6zA2D7l1WNV+Yd8cc3CUbXn4xaM5N1mbn3ojfWryyzRmopZtHHMl9MoQViFy2remVBfoQqXhE3ck3lqyMQIVdnhg3lU5CTp70X9XFQeTC8I65yG2Twa1bkkL7XYn+QhHAUiDDn4xkhC2KgfjFnnlskSh0oJYRVdc2L/hMke6gQHdIjuLfsCLppfmk/CBMoMvRz6mSa2NedAILVzX+ER3CvW2MK0ry2pW8SmRSmWSgeOEVL2qdcQ1ukyp6r29IuN9ig7pYeuR0AbdTvX2PqMHxLl4nILqxA6tWyFnw7WSfHXG9slQWHnvMQjYKZq7jZjceFwXzTw1MzrcY94HIi8PJBn4noBT7kNXfCbDBr2o6rapWaS6MInsM/O7RzBabpHasQKx6hSZAOAtubJVEpfKZ0vQZllg9it5wU1zQgyHvjR5TXX+HV5bJPkJWf4myTCgpRZXQUv2y9IsTygQmEiSO3Hvu0R7Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5176.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(376002)(346002)(136003)(39860400002)(230922051799003)(1800799009)(186009)(64100799003)(451199024)(2616005)(38100700002)(36756003)(26005)(6512007)(6506007)(53546011)(31686004)(31696002)(966005)(6486002)(8676002)(8936002)(41300700001)(86362001)(4326008)(5660300002)(316002)(2906002)(6666004)(54906003)(66946007)(110136005)(66556008)(478600001)(66476007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TDNxcUU4RGRZU2E5c2xQdnc2L0tjR1VsclNEOHY3RXpRaE5GWnhkWTJ4QmN0?= =?utf-8?B?MGUzQ3dUU2Z6dU96dGltQ0hsQm1PdnBpd25BQ0lucGxFWWVQY0ZuYitLdkt0?= =?utf-8?B?Mmxrc3RyNmVDbVhKazdoRVQyRUQ4bjZ1NG1lbjEwM3F5ODF3czRXVGQxWnpU?= =?utf-8?B?NzNQSGN4N3RUd1kvY1pSbHo1ek5XckFPdmdYUmN0M0hic0k4T1BZSGtUdnZQ?= =?utf-8?B?akNqT0hxNHhqUTduS042aGxRSGlKN296QnYxR3B1SHB1a0ZhMnFTaGNvc0J5?= =?utf-8?B?QnJ1ZGRSMzJGTVZLVVlhV1BWQkhkN3pISUVmeUxvdkQzWWw5WVRHOHlVeEtR?= =?utf-8?B?RGhDN3o3eUlvY2RqR0VR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Exchange-CrossTenant-Network-Message-Id: e6ff52b2-b58f-420b-ea07-08dbd9e6736f X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5176.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2023 07:53:20.8650 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: O1p3MJZxk43UiHNj01hp19gXFSP284OyfLhgNRsi+sDa1OcqAVSdfkRi52QqV5mwyOfOx4wFUcqkestxiwjTEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7890 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 31 Oct 2023 00:55:09 -0700 (PDT) Hi Mark, Ilpo, On 10/30/2023 9:39 PM, Mark Hasemeyer wrote: >> Hi, >> >> Thank you for your patch. This has already come up but no acceptable patch >> has emerged since. Please see this thread for what needs to be done if you >> want to provide one (or maybe Shyam already has one which has just not >> been sent out yet): Yes. Was talking to FW team before I respin. >> >> https://lore.kernel.org/platform-driver-x86/3b224c62-a1d8-41bd-aced-5825f5f20e66@amd.com/ >> >> (Since this dram size is on an init path that always needs SMU version, >> the SMU version can just be called by the init unconditonally rather than >> adding more of this lazy initialization everywhere). > > Thanks for pointing me to that thread. I think Shyam/AMD can come up > with a better long term solution, but it may be worth pushing this > patch through for a couple reasons: > 1. Probing of the driver currently fails on STB enabled systems with a > Mendocino SoC. A slower boot time is better than the driver failing to > load IMO. > 2. This patch only affects Mendocino SoCs, and was a suggested > solution from Mario in the thread you mentioned. > I have a patch in place that should address the problem you are mentioning. I will send that out next Monday after some tests. Thanks, Shyam > That said, I can also just disable STB for now...