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 X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5978C433EF for ; Mon, 20 Sep 2021 14:42:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF94160F46 for ; Mon, 20 Sep 2021 14:42:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AF94160F46 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9RiP1ahhdu6M/qQT8BqAPEIrAxKuvd/noIrL0p3ki+s=; b=0Nvbp0u5uYiMk7 yQ8BT3vvWBM1szdHJlqJyx24KQJtWUOSQNLQbgTvbHM3DLkutRzMd/bxs8L/bGMGoKjFZ6D09flVr TnMKWJlwAw5TbTOAUoMAVnHPLVvrWN7eiwTnASirTZPQIkHgUcNk1krt/G0urLqHaoSWAhbe+8DWk jET2/4EvisgGGhbUnxzLcWxmT3I29U6I691XYAH/9SLWd7pcqByK00l182Zk7rA6eh0aVpsCnLiJC fE/DCV20jZIuk1Gz4hnqh3IZpG3rozBKu8FSyWxqq6zLxxa20BXG767d8SYGvOIOhtthwPaIzNXi3 kAa/+XhXS8L7S1zP2EhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSKSU-001zRb-FH; Mon, 20 Sep 2021 14:39:52 +0000 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSKSK-001zMZ-CZ for linux-arm-kernel@lists.infradead.org; Mon, 20 Sep 2021 14:39:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632148772; 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: in-reply-to:in-reply-to:references:references; bh=nhpibeqk4PvPTYyqOpXGwb8TL8EsN3x82upWewR9w28=; b=GBQnYNQI354cqsJ+eG+xUo1+0HLqZ4P30AnXsMt+y9wDZIw9ttbGow+S3gAuJH2msajA6f uVK1LZh7c77sYGQFjXj04J2B6BqaVXIqqsq00EgYsRwdtt9qByHRmGflJuWgTMqj6n4Gj8 CB9KY8w3hSypCzTs8F8VMu3/CnY1gdY= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-491-z4aM7zD4PNOHWSKZ4prQVQ-1; Mon, 20 Sep 2021 10:39:30 -0400 X-MC-Unique: z4aM7zD4PNOHWSKZ4prQVQ-1 Received: by mail-qk1-f199.google.com with SMTP id ay30-20020a05620a179e00b00433294fbf97so40266304qkb.3 for ; Mon, 20 Sep 2021 07:39:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nhpibeqk4PvPTYyqOpXGwb8TL8EsN3x82upWewR9w28=; b=D1yjJxSKDA/NK9iazNHtDTkS2C6nhyvjfDQervZT1H9I/Y34i24loxYR1go/mG0mLz 0mrocWub4bfvAu5jNT5qhxs3rjwkJTlu6tym9MsAnX+ibLgcEn90L6z5v85by68+2d32 8ElaAAswpXQXQoNpjfqC6zqWWrumyA4e/UqKRPsusnvXA/x6Zec1oCaUn7zH6mK5pBpT 6ke0xoVLMgtvr3iErhc5j/fyEO9FDHqnePkHiBVvORWDXnQFw9x6xRfzz6+pVt1mDLh2 wV+CVK27r5dKXNRFWUZC6toMO+APk1TtJPh/5EFLt88EKX4jHCaWkzeiDv8lzkNlHxh3 cJPA== X-Gm-Message-State: AOAM532MqOyi+6gQSz65NsuYlSXVwhK65wH7IwDU8XUJoIRrzCtW/2tb f4CFsKGtd8TLTpfgC7pR1RNIpTjUaF0AFD9oaXFY6fBwol2G8ZNc9lLREiUNy8ZFTsZxLQiFC7I ep9cIgYhShRR4NyemZqZwDSHp4tozYjxkql0= X-Received: by 2002:a05:620a:cd0:: with SMTP id b16mr24832168qkj.136.1632148769854; Mon, 20 Sep 2021 07:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxB2Y7T7b4bSWSVgRi7HdyZbRCph2nN2tQ4jNT1Sag+Z5mGiiad+h22+bslkc/EIiCd4pdyg== X-Received: by 2002:a05:620a:cd0:: with SMTP id b16mr24832151qkj.136.1632148769680; Mon, 20 Sep 2021 07:39:29 -0700 (PDT) Received: from gator (nat-pool-brq-u.redhat.com. [213.175.37.12]) by smtp.gmail.com with ESMTPSA id n20sm11509869qkk.135.2021.09.20.07.39.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 07:39:28 -0700 (PDT) Date: Mon, 20 Sep 2021 16:39:24 +0200 From: Andrew Jones To: "Russell King (Oracle)" Cc: Marc Zyngier , kvm@vger.kernel.org, Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: Re: REGRESSION: Upgrading host kernel from 5.11 to 5.13 breaks QEMU guests - perf/fw_devlink/kvm Message-ID: <20210920143924.zh3zb7gf7wmd2uyx@gator> References: <877dfcwutt.wl-maz@kernel.org> MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=drjones@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210920_073940_571021_00076941 X-CRM114-Status: GOOD ( 25.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Sep 20, 2021 at 10:45:26AM +0100, Russell King (Oracle) wrote: > On Sun, Sep 19, 2021 at 02:36:46PM +0100, Marc Zyngier wrote: > > Urgh. That's a bummer. T1he PMU driver only comes up once it has found > > its interrupt controller, which on the Armada 8040 is not the GIC, but > > some weird thing on the side that doesn't actually serve any real > > purpose. On HW where the PMU is directly wired into the GIC, it all > > works fine, though by luck rather than by design. > > > > Anyway, rant over. This is a bug that needs addressing so that KVM can > > initialise correctly irrespective of the probing order. This probably > > means that the static key controlling KVM's behaviour wrt the PMU must > > be controlled by the PMU infrastructure itself, rather than KVM trying > > to probe for it. > > > > Can you please give the following hack a go (on top of 5.15-rc1)? I've > > briefly tested it on my McBin, and it did the trick. I've also tested > > it on the M1 (which really doesn't have an architectural PMU) to > > verify that it was correctly failing. > > My test program that derives the number of registers qemu uses now > reports 236 registers again and I see: Hi Russell, You may be interested in kvm selftests and this one[1] in particular. [1] tools/testing/selftests/kvm/aarch64/get-reg-list.c Thanks, drew > > kvm [7]: PMU detected and enabled > > in the kernel boot log. > > Tested-by: Russell King (Oracle) > > Thanks. > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! > _______________________________________________ > kvmarm mailing list > kvmarm@lists.cs.columbia.edu > https://lists.cs.columbia.edu/mailman/listinfo/kvmarm > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel