From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 218DBC6FA86 for ; Fri, 16 Sep 2022 13:19:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230488AbiIPNTh (ORCPT ); Fri, 16 Sep 2022 09:19:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231396AbiIPNTd (ORCPT ); Fri, 16 Sep 2022 09:19:33 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E6D7DF9 for ; Fri, 16 Sep 2022 06:19:29 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id w8so35533245lft.12 for ; Fri, 16 Sep 2022 06:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=OaypWP/IxlHhG1Kx4aDr1Q5K0a9Anqf01PLYalSrVCo=; b=mq3JbMh11ee0Td9M2zQC6K//p9ytv7XheGu/zc/RTSsxwG05ni+X18R4SVKDSxecV9 qjfi8hTwyS1KV0MutpqHstd6CbHSgNcgK2pSiHhgOWIsMc5mEVmtI6rlSOKrqz7HC9YU KxtBUj5mhgOT73/hF4H8RxwzWdj2yZx0IoumQ5d7lVIgcZGVzQdmaDh0Cd9xHj39tF6E e4HX3U5bk28EwhKfRA5shj3qaZRb30J5mBvfiuu3Y02Y7SbBEFmoTwkeuheRvbApJpU2 TQ3cOvdj01JuerO1qKMk0t5GGwiuCXV5ai2PuG0Vzo2biI2IOp5f5GDpGoaWl8H/jDaH M3Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=OaypWP/IxlHhG1Kx4aDr1Q5K0a9Anqf01PLYalSrVCo=; b=AhfLlpcC6EmvrQeTwF+pTsYhIPFnWOCFAe2N2OiolpiwUBNO5iKdDMV2NhCl6XbcNO DkbmhkY4Mi2+GSFWv1Z8LY0ihw4gDfkMo5NwBzAWO7dAPFsvTlvqD2Eny0jr5KwZcpfI 7nerkrZMxNqIgvl/uHKmauZQ4P8Qulp+WqkofcovmjGOjKaaEuChGgI7kUjUIDgiqhor 92vNxcxWBrbEP4SA7XQgzrfEB5LGC+0LxMUEqomx6tlZe85lmQXPigJ/s/mIeuLbeHnM LiW6a5oFhEcnEQXCIA+PXNxiSX+GBF28jwszyE7hOiB97FOs3YOlRbR7F5jf+yBP/eta oMGg== X-Gm-Message-State: ACrzQf0RyiwSYHQn3U4dgyglLOSmZDmFW6f/NBdqJquH9b6aiaWfY3CA R0sCIFtILEK0rg0rtj4FgEaNOh6xL9UYUw== X-Google-Smtp-Source: AMsMyM6uah9ha3qExCMZeorZmSh0Jd6ZlB8Vni6OkPnTZNHGOGWV8wlQpL0aCQj6UWpc52FxE9ISaw== X-Received: by 2002:ac2:5d25:0:b0:497:a280:9825 with SMTP id i5-20020ac25d25000000b00497a2809825mr1630139lfb.409.1663334367682; Fri, 16 Sep 2022 06:19:27 -0700 (PDT) Received: from dabros-l.wifi.semihalf.net ([185.157.14.92]) by smtp.gmail.com with ESMTPSA id f3-20020a05651c02c300b0025fdf1af42asm3650847ljo.78.2022.09.16.06.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 06:19:27 -0700 (PDT) From: Jan Dabros To: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: wsa@kernel.org, rrangel@chromium.org, upstream@semihalf.com, mario.limonciello@amd.com, jsd@semihalf.com Subject: [PATCH -next 0/2] Add i2c arbitration support for new SoCs Date: Fri, 16 Sep 2022 15:18:52 +0200 Message-Id: <20220916131854.687371-1-jsd@semihalf.com> X-Mailer: git-send-email 2.37.3.968.ga6b4b080e4-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset comprises changes into i2c-designware-amdpsp.c module which aims to add support for new SoCs, while keep backward compatibility with Cezanne platforms. Beside new algorithm introduced for the PSP-x86 communication, it also switches from MSR/MMIO access to SMN (System Management Network) since only the latter is working on both old new revisions of SoCs. Jan Dabros (2): i2c: designware: Switch from using MMIO access to SMN access i2c: designware: Add support for new SoCs in AMDPSP driver arch/x86/include/asm/amd_nb.h | 1 + arch/x86/kernel/amd_nb.c | 3 +- drivers/i2c/busses/i2c-designware-amdpsp.c | 199 +++++++++++++------- drivers/i2c/busses/i2c-designware-core.h | 1 - drivers/i2c/busses/i2c-designware-platdrv.c | 1 - 5 files changed, 134 insertions(+), 71 deletions(-) -- 2.37.3.968.ga6b4b080e4-goog