Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2842626rdh; Mon, 30 Oct 2023 09:10:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZP4U6E/7fxGQWHAwgqeORYuTH5fwm0ouDIqBZn8uzx9NxHKBq+zXoQDWKw/fZ9BySc/Vr X-Received: by 2002:a17:90b:4c8f:b0:280:2609:6d51 with SMTP id my15-20020a17090b4c8f00b0028026096d51mr3712247pjb.18.1698682205893; Mon, 30 Oct 2023 09:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698682205; cv=none; d=google.com; s=arc-20160816; b=hWSYl0OmnjGkgcm1lXGFcksCh3bE7U11CzzlpKYulJtLbRKwQsQ58wGMhGpHou/Oit dufB9o2WzRu8mBwiPM80f2yb1yruqVOYoV0omH4icvPCWS7vpiFVsuSN0thNX+gWvu37 HTA/vl1Sd6/mmgd/flPIuRbpqTAeuSI1mEKBFMp3unWFe6p7tEE3yvHJ+xHtHKKZnNhz z6NRnmJ+i4c+nGEtau9ijriiGHSjrTdV1rx35iy2XKPIP04r2TW2Ln8USISLbFB4l9z4 BShSxLFyJHN8TZvOZjJ5ESqjoL4g7DixzC770d0WVNezukOiki+Fl1pgGEORFc07yIZb RTdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Wr/jxaJ7QqShhEcFIDq6cD/wBcEhf/ws8RdosBofh7o=; fh=7Qj1HLCTWwhReHqZbsBVbQtAWJU5GvxO1HKbOFQG/9k=; b=fqORbXEex+K4T1wQuHO5vQrOTiwBm6kZ9VoFEQnJzpdavIDqzz1ubi3/ArYXjE6YQe ZkbZ5SnO0/O/46MMqMHKIYFBeSxwzWi56gqvrE01kvgUhH24+IPqAy4HqovlSU7sUm/I g+1b1GaegoTRZcvRRuCmZnIfvRNCDZCby0Ry/PhrfLn0BJjtx0UjmtaDz8GXrcrnUlrb dO/quosZ1ObSkv5zFaw73gqxopSyyKfbwEnWFcdVgsRCjW1q6yjDu7g9HDc692zR3iUj SxXUFgzTlEz0C3SRNDPOJ52RYw7BJIDuF+GvmEJzLw88C6Cl4JW4iZf09gprEisPgrWl fjFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=I4+HEgGu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c22-20020a17090a8d1600b0027762fed4a0si1185400pjo.11.2023.10.30.09.10.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 09:10:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=I4+HEgGu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CB49380A28EA; Mon, 30 Oct 2023 09:10:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233802AbjJ3QJr (ORCPT + 99 others); Mon, 30 Oct 2023 12:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233796AbjJ3QJo (ORCPT ); Mon, 30 Oct 2023 12:09:44 -0400 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 499AEE6 for ; Mon, 30 Oct 2023 09:09:42 -0700 (PDT) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-5a7d9d357faso43714327b3.0 for ; Mon, 30 Oct 2023 09:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1698682181; x=1699286981; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Wr/jxaJ7QqShhEcFIDq6cD/wBcEhf/ws8RdosBofh7o=; b=I4+HEgGui6Mn7RytlAGqxxW3SG01q3esXmnYL5UssH+i9Z2V5fIYM3SgHX9wQbbHS8 Y0tVPdRd9IFhcKsZZE69RGge4KjXn2l+uosXUMiK4DmJnd+17oTaQIHKn+9HWHj8CioQ WUCjkKi2BsTrryqu9a1EliGUBB1AOI/CHwGw4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698682181; x=1699286981; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Wr/jxaJ7QqShhEcFIDq6cD/wBcEhf/ws8RdosBofh7o=; b=QSwZWOCti0XSc7/FPYxSfz0lTuPrBHTDy4SFGWfoZn47RMD59jHUH59DDnOiSZnINb T4tt+cLCR5ZaYv9QuLx58SQq+WNOEiNU3V3bvvSAKDIHaLTmfibsTSSHA0Bse1QBLPOw EK71sMd0mG1sWs68Jumtu8kjyveoCjzP68c/tF5CQZ55IkWOAv0S1NNS98ij4eQgKLeP Em4Pe39AYFQz6z0SSn5bGr7Zh0MhyOTC/wYAFqFVRFawBpz4XykpfutjbYHIaK8IXXQu ZWqEjCMg0+hxj8Lu8Cm6jUCmm6WAAy82bc5naoT+7eIH0wThI3pdvUTemAUO3x/+6zp1 GHqw== X-Gm-Message-State: AOJu0YwZ6lpHK9x0FnTQyggcXIsOKv5mbEmr+DPBwfpJx9gtmng0NSFe K02icRkxW7MvT+DUyt4xGNLdv1d8nGDiOZ/8YJb4XQ== X-Received: by 2002:a81:b603:0:b0:5a7:c777:2be1 with SMTP id u3-20020a81b603000000b005a7c7772be1mr9989396ywh.11.1698682181460; Mon, 30 Oct 2023 09:09:41 -0700 (PDT) MIME-Version: 1.0 References: <20231027212916.1035991-1-markhas@chromium.org> <2b8335a7-4b9b-825-c1b8-84158aaf2c42@linux.intel.com> In-Reply-To: <2b8335a7-4b9b-825-c1b8-84158aaf2c42@linux.intel.com> From: Mark Hasemeyer Date: Mon, 30 Oct 2023 10:09:30 -0600 Message-ID: Subject: Re: [PATCH v1] platform/x86/amd/pmc: Get smu version before reading dram size To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: Shyam Sundar S K , LKML , stable@vger.kernel.org, Hans de Goede , Mark Gross , Sanket Goswami , platform-driver-x86@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.3 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 30 Oct 2023 09:10:03 -0700 (PDT) > 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): > > 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. That said, I can also just disable STB for now...