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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 141B5C3271E for ; Mon, 8 Jul 2024 08:37:39 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.755155.1163416 (Exim 4.92) (envelope-from ) id 1sQjsH-00073P-I6; Mon, 08 Jul 2024 08:37:29 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 755155.1163416; Mon, 08 Jul 2024 08:37:29 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sQjsH-00073I-Dt; Mon, 08 Jul 2024 08:37:29 +0000 Received: by outflank-mailman (input) for mailman id 755155; Mon, 08 Jul 2024 08:37:28 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sQjsG-000720-JD for xen-devel@lists.xenproject.org; Mon, 08 Jul 2024 08:37:28 +0000 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [2a00:1450:4864:20::22b]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 4e85d9fd-3d05-11ef-bbfb-fd08da9f4363; Mon, 08 Jul 2024 10:37:27 +0200 (CEST) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2eaa89464a3so38375951fa.3 for ; Mon, 08 Jul 2024 01:37:27 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c99a9cd3e7sm7591229a91.39.2024.07.08.01.37.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jul 2024 01:37:26 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 4e85d9fd-3d05-11ef-bbfb-fd08da9f4363 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1720427847; x=1721032647; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:cc :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=HVi2QuOOiFsVeo4eZTzOhCsITH9zIUk3qCVeDy1/hOs=; b=QSpm4PyO4GSm8DIdwryEvXJG0TM2gzL9CdJ7imEysT6WhB9dFbEEJ//d+OiyTuh60E cdOXZ5HF/WbGZY2ZIr1vt6oikAtdYVPufhwax1EKW5bXUSib9GVxi92qXbR7iH5Z/ffR ar+ZFFowQhnRRheatapWiQF9m+tujrPHEINoISCUdzNa/8u8xM5ATeqk/Au2zWk3NaTP lQZvZheL5V+VgDz5rjhCY/xeBXLOP8Tr3PCTGNUTYQWWrvsyEjnu6H/7Tx53uNmSzrf3 cwM5EXKFc+yBubr4C6rMo0fmitxFlia5NL+spNEs0dbzkGwWt5SuacNxfHOR4afaO70V Exlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720427847; x=1721032647; h=content-transfer-encoding:in-reply-to:autocrypt:from:cc :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HVi2QuOOiFsVeo4eZTzOhCsITH9zIUk3qCVeDy1/hOs=; b=oNZTz3ZuPooY//bZQHTo15zfkagx7l2I4vUuTgH9VLNG3roviFs90yTr+wfLUVQjUm J7Egl/STU4EmX1f6rblxLGH9wwr8wSW6HaFCXkM+1qTWKAdhKdm1iTU9T8DxQz3vwyrk rq2ymJ8OuZWI5nCmVKh3SXvlNwCPh+tefd3RI6l+LTJVJ9L2UfGY2Np7a2TZZaH2tGDc 4fmY6bVJVqumpSy7YzSnlLPR5YA1Phvj4tD41VUyhRBrzjjujJAL53+jBgBsz1xxtHil A/bgi6zRRn8pzJeOUdkrrnTpjNRtSlxZMFyrqcPFC//zSVa5Vgg3KsuBb9IY+Tr6aq7L VEEQ== X-Gm-Message-State: AOJu0Yxp1fApTZv6vDB5uaV8o10Nu60LYKl4+TCDaxl1xxa/9dsRiFPd YXbuidQg7zdAYmLzXSXXwaIogZxdUSeq9OgGbPT13PVy8E7tx04dkUffsu0QEPZ+rkOjY5UaqBU = X-Google-Smtp-Source: AGHT+IGACpdQjqUINg+fQEKVfBh660rti2P23jOsv6kf44F27SOvFtoe+DK4QKkCHEtz53XMETnu2A== X-Received: by 2002:a2e:a58a:0:b0:2ee:6a72:f006 with SMTP id 38308e7fff4ca-2ee8ed8c709mr96312071fa.21.1720427846878; Mon, 08 Jul 2024 01:37:26 -0700 (PDT) Message-ID: Date: Mon, 8 Jul 2024 10:37:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Problems in PV dom0 on recent x86 hardware To: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= References: Content-Language: en-US Cc: "xen-devel@lists.xenproject.org" From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3q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M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 08.07.2024 10:15, Jürgen Groß wrote: > I've got an internal report about failures in dom0 when booting with > Xen on a Thinkpad P14s Gen 3 AMD (kernel 6.9). > > With some debugging I've found that the UCSI driver seems to fail to > map MFN feec2 as iomem, as the hypervisor is denying this mapping due > to being part of the MSI space. The mapping attempt seems to be the > result of an ACPI call of the UCSI driver: > > [ 44.575345] RIP: e030:xen_mc_flush+0x1e8/0x2b0 > [ 44.575418] xen_leave_lazy_mmu+0x15/0x60 > [ 44.575425] vmap_range_noflush+0x408/0x6f0 > [ 44.575438] __ioremap_caller+0x20d/0x350 > [ 44.575450] acpi_os_map_iomem+0x1a3/0x1c0 > [ 44.575454] acpi_ex_system_memory_space_handler+0x229/0x3f0 > [ 44.575464] acpi_ev_address_space_dispatch+0x17e/0x4c0 > [ 44.575474] acpi_ex_access_region+0x28a/0x510 > [ 44.575479] acpi_ex_field_datum_io+0x95/0x5c0 > [ 44.575482] acpi_ex_extract_from_field+0x36b/0x4e0 > [ 44.575490] acpi_ex_read_data_from_field+0xcb/0x430 > [ 44.575493] acpi_ex_resolve_node_to_value+0x2e0/0x530 > [ 44.575496] acpi_ex_resolve_to_value+0x1e7/0x550 > [ 44.575499] acpi_ds_evaluate_name_path+0x107/0x170 > [ 44.575505] acpi_ds_exec_end_op+0x392/0x860 > [ 44.575508] acpi_ps_parse_loop+0x268/0xa30 > [ 44.575515] acpi_ps_parse_aml+0x221/0x5e0 > [ 44.575518] acpi_ps_execute_method+0x171/0x3e0 > [ 44.575522] acpi_ns_evaluate+0x174/0x5d0 > [ 44.575525] acpi_evaluate_object+0x167/0x440 > [ 44.575529] acpi_evaluate_dsm+0xb6/0x130 > [ 44.575541] ucsi_acpi_dsm+0x53/0x80 > [ 44.575546] ucsi_acpi_read+0x2e/0x60 > [ 44.575550] ucsi_register+0x24/0xa0 > [ 44.575555] ucsi_acpi_probe+0x162/0x1e3 > [ 44.575559] platform_probe+0x48/0x90 > [ 44.575567] really_probe+0xde/0x340 > [ 44.575579] __driver_probe_device+0x78/0x110 > [ 44.575581] driver_probe_device+0x1f/0x90 > [ 44.575584] __driver_attach+0xd2/0x1c0 > [ 44.575587] bus_for_each_dev+0x77/0xc0 > [ 44.575590] bus_add_driver+0x112/0x1f0 > [ 44.575593] driver_register+0x72/0xd0 > [ 44.575600] do_one_initcall+0x48/0x300 > [ 44.575607] do_init_module+0x60/0x220 > [ 44.575615] __do_sys_init_module+0x17f/0x1b0 > [ 44.575623] do_syscall_64+0x82/0x170 > [ 44.575685] 1 of 1 multicall(s) failed: cpu 4 > [ 44.575695] call 1: op=1 result=-1 caller=xen_extend_mmu_update+0x4e/0xd0 > pars=ffff888267e25ad0 1 0 7ff0 args=9ba37a678 80000000feec2073 > > The pte value of the mmu_update call is 80000000feec2073, which is rejected by > the hypervisor with -EPERM. > > Before diving deep into the UCSI internals, is it possible that the hypervisor > needs some update (IOW: could it be the mapping attempt should rather be > honored, as there might be an I/O resources at this position which dom0 needs > to access for using the related hardware?) Adding to Andrew's reply: Is there any BAR in the system covering that address? Or is it rather ACPI "making up" that address (which would remind me of IO-APIC space being accessed by certain incarnations of ACPI, resulting in similar issues)? Jan