Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3893540rwb; Mon, 16 Jan 2023 14:48:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXvuirjYQvJ+MMJWJ5BYgL8+md801L4BNB398NBl7XGhyW0ryiOaeAg43JF7KOtDA3mXTvs2 X-Received: by 2002:a05:6a20:4c15:b0:b8:4fcc:ff70 with SMTP id fm21-20020a056a204c1500b000b84fccff70mr479481pzb.33.1673909319233; Mon, 16 Jan 2023 14:48:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673909319; cv=none; d=google.com; s=arc-20160816; b=NIBT4gHUG0JRQh4FyK6mk2fBuGn7/p7ngdS+Aj5WhIxcV/dG6ZEjbeLzPp+bWyrVC9 H+9q6btHeqkD39a+KeSVIgZ3+/2TFAbIfvKB/QVL3A/HkGSJ885QWTOtDnPWt4i6oUE8 pC3bf/d1i2qC9HXip+bwJi3PnGrcbBcdB6hq2miPWilfm16VOVozK+3schOK2TM0x1Q1 XoOSH0PWr+sojDvuSjxdT7RUT0egbdhTp5JuTU5O35+FXfwOWpkQTeu0ULpUvwbS9rSv PwZjq3xTfwLVExyVGgcVBr6qkgXYKVIPuthXcH9HXu7eIXJ40VtzFwL27IeC5/kce94C W/1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QHdyDsRmGsHeS5gc+1aFuObgPFEvnjm6n7kVGQTzBBE=; b=M7F+Kon15yl6UAwuo8DreHtmDsoM2AVDJk4DOJLNAvlLAfON0MxggRMh1P3FNVhdbQ dR064M8prVw6HrhbmZAIPWdhS30HTf/fzzZ5OT4YCll0lz91WTt2/uOLeAGodPfRijFO 86b+C3exlnjR6JFVEL0HlsvSm8LiBGhSNaV72h0eNMhFtYOpWA/Ihtdq0COrP6A+7A6R tkmHJvZTRXinRziA/LdT8YliToKna3D+FI/z3ITM1/6gNpEXN1uQK6LApJzxxUiE5NHt HXrh6I8Tr/e1OmD1QxPbrRHpYEA5fPEieEXlPZgyVvNWru/vlQX4JKg0XkJa0602LOzD ogTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=k8hpX5ws; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a637242000000b00477aeffa74fsi32278735pgn.107.2023.01.16.14.48.33; Mon, 16 Jan 2023 14:48:39 -0800 (PST) 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=@alien8.de header.s=dkim header.b=k8hpX5ws; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234964AbjAPV7t (ORCPT + 50 others); Mon, 16 Jan 2023 16:59:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234917AbjAPV7r (ORCPT ); Mon, 16 Jan 2023 16:59:47 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A99224491; Mon, 16 Jan 2023 13:59:47 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A2B191EC0441; Mon, 16 Jan 2023 22:59:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1673906385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QHdyDsRmGsHeS5gc+1aFuObgPFEvnjm6n7kVGQTzBBE=; b=k8hpX5ws7B1G6075stAlrwc7tYOcUL2lIRbqWzoWbapv3r77i4GuEYrx2wy/3FJQeuzC/E g+7/9VAMRE9svrwVjNHFHeix2wWojRDdJS84wok+/rMoLsWufOgQqNQoEEaffm9op6O7rk i1tu52UWSRinzeRIEWUPqP/c2Mq/d04= Date: Mon, 16 Jan 2023 22:59:41 +0100 From: Borislav Petkov To: Jan =?utf-8?B?RMSFYnJvxZs=?= , "Limonciello, Mario" Cc: Hans de Goede , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, jarkko.nikula@linux.intel.com, wsa@kernel.org, rrangel@chromium.org, upstream@semihalf.com, Muralidhara M K , Naveen Krishna Chatradhi , Yazen Ghannam Subject: Re: [PATCH -next 1/2] i2c: designware: Switch from using MMIO access to SMN access Message-ID: References: <33d5cc27-474b-fdec-a6b0-84ac16f7d386@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Mon, Jan 16, 2023 at 11:19:00AM +0100, Jan Dąbroś wrote: > It's not enough for running init_amd_nbs() to have only > pci_arch_init() done. We need the pci bus to be created and registered > with all devices found on the bus. And when is that done and ready? pci_scan_bus()? Lemme see if I understand the ordering correctly: 1. PCI needs to be initialized and all devices on the bus registered 2. AMD NB needs to run and enumerate the NBs so that the SMN access which you need, can work. 3. acpi_scan_init() 4. i2c-designware-platdrv registration Close? Now, Mario, remind me again, pls, why can't they use the MSR to get the PSP MMIO base. It has changed but why? Maybe we should talk offlist first. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette