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=-9.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 E51C8C433DF for ; Mon, 20 Jul 2020 14:54:33 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B01FD22B4E for ; Mon, 20 Jul 2020 14:54:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YMEZ+gm3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B01FD22B4E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jxXBD-0000b9-7O; Mon, 20 Jul 2020 14:54:11 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jxXBB-0000b4-5o for xen-devel@lists.xenproject.org; Mon, 20 Jul 2020 14:54:09 +0000 X-Inumbo-ID: dd112ba0-ca98-11ea-849c-bc764e2007e4 Received: from mail-ot1-x344.google.com (unknown [2607:f8b0:4864:20::344]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id dd112ba0-ca98-11ea-849c-bc764e2007e4; Mon, 20 Jul 2020 14:54:08 +0000 (UTC) Received: by mail-ot1-x344.google.com with SMTP id c25so12402181otf.7 for ; Mon, 20 Jul 2020 07:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=QBB9o1cZ8g3+RFyyMGo7jZrS0UDti7SFSFebEliZB+c=; b=YMEZ+gm32iwx0IJ8U54KGaXMO1AcwsDDqSUrpGVbA00LcDQeSK319XcgPAxzC1aXLk 0OgrQiN+RUJDWb0KRZyJXtfwC1w0DGzcLjb2EJQdNO5IvoWmpEKBopWWMt4ngswGUE1r YtrVisRRnOTPPQ8FE+2to8E6BVw4J5icGcORPpP6T3+8TLDkvysWWkbLa2k2wHUH1T1u Uok+VudT0FgpmkUn87b1TIkvT0YeG8zlp2+uJOWZRB7o2IdhlA2/rFVqHocnKOAddlWI JIRkK0jJnINEs0RBTibFNdOxgzNu4iTGBQicPQh+zSHDHFbz9lBhKhOcnH0S5/QMyiAC b+xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=QBB9o1cZ8g3+RFyyMGo7jZrS0UDti7SFSFebEliZB+c=; b=P/vXOK2Rd0iwD3qVTxI3fZGcCCumCwAdMclP5THJEVBmj4OqpRCiAl4yfImdsmR9tm /xaKssT+wSjgX6trey0IjR1+ev4j/nUjnSSPnCiU3cJMBAqz53yVk4zE+sp2bpquSZqO U51Xls2DFy4BZJNYvsSYe4IFB8mFJfuyE3JmvwkI67L+C+/tR8ZnzkHESEgGDXHIrDk0 nLl4WffK/H+86T1SvWLk0F+Vx/9eh2wX5PCu8JQyz2j/faRp/Ra/p0E08ibOoLiraduS 0Fj5vOlz/9EYDutpjxtLSIb5AP+IzKn4oLZ2T3yww79MHm6RUc8j2Ub/62xI4rC4rSUs qjCg== X-Gm-Message-State: AOAM533kqH3j2LjlGNHhSuhrnxreutez4xae8NDhzD/INJa/lTDCVn+P 3U/i7SiVKf5VudDsV14mYQqmuYKwGy6sXslcfjST1IrK X-Google-Smtp-Source: ABdhPJxqN5+nJ5pRQByNhQP7e17jnpQoeVfh5alWWX8XxaUd0ZCpgHJh8WXx06COjx/Ssm8r60iZVp+UbhSzwhndwNI= X-Received: by 2002:a9d:640b:: with SMTP id h11mr20925612otl.92.1595256847440; Mon, 20 Jul 2020 07:54:07 -0700 (PDT) MIME-Version: 1.0 From: Alejandro Date: Mon, 20 Jul 2020 16:53:56 +0200 Message-ID: Subject: dom0 LInux 5.8-rc5 kernel failing to initialize cooling maps for Allwinner H6 SoC To: xen-devel@lists.xenproject.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hello all. I'm new to this community, and firstly I'd like to thank you all for your efforts on supporting Xen in ARM devices. I'm trying Xen 4.13.1 in a Allwinner H6 SoC (more precisely a Pine H64 model B, with a ARM Cortex-A53 CPU). I managed to get a dom0 Linux 5.8-rc5 kernel running fine, unpatched, and I'm using the upstream device tree for my board. However, the dom0 kernel has trouble when reading some DT nodes that are related to the CPUs, and it can't initialize the thermal subsystem properly, which is a kind of showstopper for me, because I'm concerned that letting the CPU run at the maximum frequency without watching out its temperature may cause overheating. The relevant kernel messages are: [ +0.001959] sun50i-cpufreq-nvmem: probe of sun50i-cpufreq-nvmem failed with error -2 ... [ +0.003053] hw perfevents: failed to parse interrupt-affinity[0] for pmu [ +0.000043] hw perfevents: /pmu: failed to register PMU devices! [ +0.000037] armv8-pmu: probe of pmu failed with error -22 ... [ +0.000163] OF: /thermal-zones/cpu-thermal/cooling-maps/map0: could not find phandle [ +0.000063] thermal_sys: failed to build thermal zone cpu-thermal: -22 I've searched for issues, code or commits that may be related for this issue. The most relevant things I found are: - A patch that blacklists the A53 PMU: https://patchwork.kernel.org/patch/10899881/ - The handle_node function in xen/arch/arm/domain_build.c: https://github.com/xen-project/xen/blob/master/xen/arch/arm/domain_build.c#L1427 I've thought about removing "/cpus" from the skip_matches array in the handle_node function, but I'm not sure that would be a good fix. I'd appreciate any tips for fixing this issue. Don't hesitate to contact me back if you need any more information about the problem.