Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3347237rwl; Sun, 2 Apr 2023 05:56:26 -0700 (PDT) X-Google-Smtp-Source: AKy350aeyGK1d62J8udPHM93jdx3iQOZZkPUlTTe0p5TFPnYi93t4aImimeIGdS80u540Y4OPEPD X-Received: by 2002:a17:906:1e89:b0:91d:9745:407a with SMTP id e9-20020a1709061e8900b0091d9745407amr14842764ejj.14.1680440186335; Sun, 02 Apr 2023 05:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680440186; cv=none; d=google.com; s=arc-20160816; b=GP3XLvIaZ1OGBiXNKsue+Yf3/l5L/k23voT7+3pdkEnNP9Krc1mZd3mkvMfHWCCDRx 4kAZ5Tw8krbfvtWao+nLnq6NErfUrPhADzIwPH3FP8myoNIS3zUKsH5J31yszJ0sJgS5 +Bqcpu2giCRIpc42Sfvoyh1Vndj3GH4I4BhsDZke8hHz9Fq5fact5DF3fDFaunex6UnF Uw2GXcV3uCm+eHQuEjGTiBAcMaNeGeUdRNpz991SLRZCGhOesJd5PxvIt0DA6ZYsJZki Kl8lZf3rNA0q+3mEtK6JRnbstIW/uKNVL7RDCbV/kky4tK9l1gAM+GV11zlCMjHVrOeF /Wqw== 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-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=BpzI7Au0Q9dN4lD4MrjFVfTVGtzJnGuXlYcSG+gzAgM=; b=dfUbLkIwsxwG//L9WYv+9/UT+wCi4I14NX9tdWQSiam7SXg0LwyPYY9TdwJTq1JXyZ eUensWSXLLz6j+fW8mEW/4bojlsB3LMS/bt6zjrVGevoH6i+UahX2MeRIkneEXP2rBN9 5xHYj5CbFRTkqQ91yovZWMXDs0gx8KjBVrRaDcWq49Uu3kk/2FREmyNDzR7ShRmsRefY RT3o0h67hJpYYDPXzZUn6KpZNbns8FB2K9SMYVgrT94flV0BNhwFb8GWa7A4eGs0pTQN 9fbSKzUbjqwUjMLbz3yTu+4kfyHNOSXDyouYaU6/CghZdF3/nw+8vRV5n1N512wkFINs Qt3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YRm7lKLz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ty9-20020a170907c70900b00947eafd2348si3527721ejc.253.2023.04.02.05.56.01; Sun, 02 Apr 2023 05:56:26 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=YRm7lKLz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230341AbjDBMzZ (ORCPT + 99 others); Sun, 2 Apr 2023 08:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjDBMzX (ORCPT ); Sun, 2 Apr 2023 08:55:23 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36EF8BB96; Sun, 2 Apr 2023 05:55:21 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id r7-20020a17090b050700b002404be7920aso25919011pjz.5; Sun, 02 Apr 2023 05:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680440121; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BpzI7Au0Q9dN4lD4MrjFVfTVGtzJnGuXlYcSG+gzAgM=; b=YRm7lKLzpWSTbjXr7/lR2eKETP18fhNBuZf4Z4FzVLBRsgmWVJ0KU07DRToZeZvcUt QRP3SSkWTkhAzZmMkI0cE1NINqjbS8K6c0vJWE4zDyRNb0KQnQlv5gFTl3WwrgGEqdwk 0gYjSRKIwXqvR0Q8HNH+EkM+uUXcffaFLpa/q7XVTLmQ9ztzCRKttIOtO/1v4TJckkox CZoePAq9JMJad4uJyc27enzTyNviWi7Y81GucQi5c9AA3vTYXr9APemFODPGTYwwg9d/ ZC1nx+ZG+I55QJibqC4Ync7u33OvqTMh56uVr3muA6nqjzayqDwXcgY7+szrgN93yZt3 Cf0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680440121; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BpzI7Au0Q9dN4lD4MrjFVfTVGtzJnGuXlYcSG+gzAgM=; b=Y9fuZVO7gZnR53oNa4bh17kZ0fBShABDNnoTZVq0ZIimEliRoje2IAvrwz1NSWGuSX L0mbssNL9whCkjnEbIfQOXAKc1F54cVHho7lP7emBPg6loDvu+ldX7fRVxeY6VE3iyCz cSND1DWObz4r5xzHq5jAKG30qPnidBf3M3vHs6DRyvegXsntO10znV0IHRbCXVioeOnE IS5eebtBXs//Af0tPv/CQ21GeAt6kNALqIxeBD3GqRexyEnhsIRcbkJUb4Tza29n5DXT ov1VjMnUF0oOTV03P0DyFCSR7S2OpWwkYeeEaLSvyPhpHu3iKU1itAKjjPF4RHNSD6to Ba5Q== X-Gm-Message-State: AO0yUKXCDi/IRAEoVWwtLjbphXj6S954nvuDf/THaIU2q4a6sC72k6Zi 8G96dYMXvCPYRIS/eq7TEC8= X-Received: by 2002:a05:6a20:4d94:b0:cc:d514:62cf with SMTP id gj20-20020a056a204d9400b000ccd51462cfmr24024616pzb.43.1680440120717; Sun, 02 Apr 2023 05:55:20 -0700 (PDT) Received: from debian.me (subs28-116-206-12-38.three.co.id. [116.206.12.38]) by smtp.gmail.com with ESMTPSA id u16-20020aa78490000000b006242f4a8945sm5004103pfn.182.2023.04.02.05.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 05:55:20 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id A138010665A; Sun, 2 Apr 2023 19:55:16 +0700 (WIB) Date: Sun, 2 Apr 2023 19:55:16 +0700 From: Bagas Sanjaya To: Lucas Tanure , kernelnewbies , Rob Herring , Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: Re: Kernel Panic - V6.2 - Reseved memory issue Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Wq5IN3qnESGv29nn" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 --Wq5IN3qnESGv29nn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 02, 2023 at 09:10:36AM +0100, Lucas Tanure wrote: > Log: >=20 > [ 9.792966] SError Interrupt on CPU3, code 0x00000000bf000000 -- SError > [ 9.792980] CPU: 3 PID: 3471 Comm: kded5 Tainted: G C 6.2.0 #1 > [ 9.792985] Hardware name: Khadas VIM3 (DT) > [ 9.792987] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE= =3D--) > [ 9.792991] pc : kmem_cache_free_bulk.part.98+0x1f0/0x528 > [ 9.793004] lr : kmem_cache_free_bulk.part.98+0x2f8/0x528 > [ 9.793008] sp : ffff80000a2eb7f0 > [ 9.793009] x29: ffff80000a2eb7f0 x28: ffff00001f358518 x27: ffff00000000= 8800 > [ 9.793016] x26: ffff00000262b300 x25: ffff00000262b300 x24: 000000000000= 0001 > [ 9.793019] x23: ffff00000262b000 x22: 0000000000000000 x21: ffff00001f35= 8538 > [ 9.793022] x20: fffffc0000098ac0 x19: 0000000000000004 x18: 000000000000= 0040 > [ 9.793025] x17: 0000000000000018 x16: 00000000000007f8 x15: 000000000000= 0003 > [ 9.793028] x14: 0000000000000006 x13: ffff800008e48550 x12: 0000ffff9dc9= 1fff > [ 9.793031] x11: 0000000000000004 x10: 0000000000000001 x9 : ffff000007e9= 3680 > [ 9.793035] x8 : 0000000000000020 x7 : ffff000001d2b100 x6 : 000000000000= 0007 > [ 9.793037] x5 : 0000000000000020 x4 : ffff000000008800 x3 : 000000000000= 0001 > [ 9.793040] x2 : 0000000000000007 x1 : 0000000000000000 x0 : ffff00001f35= 8540 > [ 9.793045] Kernel panic - not syncing: Asynchronous SError Interrupt >=20 > This doesn't happen with downstream Khadas 6.2 kernel, and that's > because the downstream kernel removed this from > early_init_dt_reserve_memory (drivers/of/fdt.c): >=20 > /* > * If the memory is already reserved (by another region), we > * should not allow it to be marked nomap, but don't worry > * if the region isn't memory as it won't be mapped. > */ > if (memblock_overlaps_region(&memblock.memory, base, size) && > memblock_is_region_reserved(base, size)) > return -EBUSY; >=20 What commit on downstream kernel that fix the issue? Can you reproduce on mainline with above conditional removed? Alternatively, can you post the downstream fix here? Also, can you find last working commit on mainline? If so, this is regression. Thanks. --=20 An old man doll... just what I always wanted! - Clara --Wq5IN3qnESGv29nn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZCl7LwAKCRD2uYlJVVFO o9EWAQCPtYrbWdu3QEMuqKyChX9q9UnlkrbF0Vwm/6YqiqGRAgEAwqg0FslXEiJE jh7cVhCBy9zWyiCJf+XjOLmQ9SPjTQA= =w4gz -----END PGP SIGNATURE----- --Wq5IN3qnESGv29nn--