Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp333734rdb; Thu, 18 Jan 2024 05:10:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiCnIdwdje6+vLnpTvv74Tr1Ofug6dIx55U8eaZaAH0QvF8naMLcwU3m+YfngDqCkriYVZ X-Received: by 2002:a17:90a:9482:b0:290:24c7:78cf with SMTP id s2-20020a17090a948200b0029024c778cfmr890273pjo.13.1705583441396; Thu, 18 Jan 2024 05:10:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705583441; cv=pass; d=google.com; s=arc-20160816; b=l+rT8Df5bMGScTdto24p1HuCqOiVhHwgdj8J2/n6iJ5ATNzng6hOBpAnXJnATExzGB 5DCDts+XIRJFRJw1MK/ROV1263bgxluw0cE9SG/nRHdlNIk+Br7cqoP9a19L0gRth7+Y v722gWjGUr0tjqi9Hw8aYt6tFpLl2pRN1jmsOnyAD8lPP/lwpw8E9kwcEkDslVNeckY0 PaugpQjsNHDTIrf/On32TWxPQJa5kCIR5ekjR9VjpakLuouFpyqLPv9bzsFQzD6Mh9L/ iZQ8dREyHU+gtjjTpa9hIh2qmBFntdlTnJgkP4CebLYZllWfVInnDJ20ZVRhxTjzfhBF hLjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:message-id:dkim-signature; bh=eAyJWWmqD0cVA+kTNGEGgS4mxc0bZZdSVSyAfOZfI6E=; fh=LATs3RmHBU6RlvmUgf716Gr8xlMZ2olt+6xR/LAHc5U=; b=RarbM8pAdz0xAZNHUWmtG2XDwXgvoiG8Z5Im+iucafm67EQ86JmAD710rrNs6KRe4z zc79E6b7nJBbE04zwJQ9t10M4a/bg8Z8RrOAOI6FpybUil2T3N5AV3k5ehwyslG4C6vZ qBOX0NcidMg6BLHaGpETcjFVPK3VeLzaEmhcisa+0v2JQa1/oIVlBshRQjkKf6z+Xv4F ZGIBNVk2uuqaUiEDOqNdVSoX2dlQ59DohXSRg4OZ4FT9/a4AfYME5zAVrtambPB6rcuG ev7oeA1smjbZq5ZYrEWxq3WXp3WfiV7+mEOMoqmwl+bo4J9k97KHq2M65ww5yn3xgLza Lx2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EklE8HKK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-30130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u4-20020a17090341c400b001d70c0f2f0fsi633284ple.217.2024.01.18.05.10.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 05:10:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EklE8HKK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-30130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 564CBB253F5 for ; Thu, 18 Jan 2024 13:06:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D58D32510C; Thu, 18 Jan 2024 13:05:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EklE8HKK" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BA71250E1; Thu, 18 Jan 2024 13:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705583159; cv=none; b=QX5xFp/69J2bKxkjwtObn9IeThI68SZGoFJv9b00K5smZw6yuSzb1MTQTz6i8+GTJ55uvaqLWsAU42ZQC1+nqrCIUax4ratopDN/B3zfx6KaEmbRAjParDsxjn6j98Uul2585JZcsVcP7pWue1+SHWpmBz0VEMJXP4hnLOWneSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705583159; c=relaxed/simple; bh=lFrp97aw/AwWDmRW5KGr0dh1PHBj2EJkvqJoRsMVEcw=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received: Message-ID:X-Google-Original-Message-ID:Date:From:To:Cc:Subject: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=J7utK+2xprDfor7zD/B4RU5ZfXdOVsswzhnlogW+UHXdtr3rkaLV3E3Ich9sWurcGHlIxbAkv1xzeJ6C5IiSeHrr13N8p1iKSCf9iqbUTmVZBXXlbPIrIcw4Y6EelFp4xoxdy1k53JwGInZvLBzGPkbquXREIphvjEdu1TMBZQ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EklE8HKK; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-3366ddd1eddso10010550f8f.0; Thu, 18 Jan 2024 05:05:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705583156; x=1706187956; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:subject:cc:to:from:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=eAyJWWmqD0cVA+kTNGEGgS4mxc0bZZdSVSyAfOZfI6E=; b=EklE8HKKaB49rBOM2FK5nX6h+CcL7KHpRUoPKocgKv+SfP/Vkmh7YNX9D0fYE2vmx1 6LowV9kZUZvvJt1/MVFsAXS42PdGKF1aiHddgGBAk9luHq3KozbvbKuMQIIMCULfsWJ+ J94EsjbQfQQox+oqqXQOlaA4ZmX9H6s7dZKXDIbxqQ+mToYz6cnAHz6YBieh6bl6HGRz QbSthW/BGsFHmO5RlmSxqcGI5UOCjFGCCYv6WL0FRnK7f96qiiVEKH9dftUd84M7YwtF a7C8gBzLq9I+mjNsujF9Bz863S58nFCtLylCL+tAKWNiWUdBwPxuCw9c/oFvbBk+SWfx 6U4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705583156; x=1706187956; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:subject:cc:to:from:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eAyJWWmqD0cVA+kTNGEGgS4mxc0bZZdSVSyAfOZfI6E=; b=WzrT3q5kbu8HvtgLE3w7pWw8Jnccw03Tm66Xe/1gXobmbMG1MfvMR/MWGDk00nWYJf H9Y8rVMMQqmVu7qyhK4v4BPCnAQOpyJRSXPHfJbu0E0tLXn8d0HEkRPmT3WyEKG8ydqV aNC0GVfpGm+qBljkDt9tu3MvEKY/dx4AEj5+AgCw0DXnheXyCjpTrIbNZ8Eb5mFu1i52 hAx12Cc6BmmjADkpZsucdI5YHU160nsAb9v/P35BMbGsQLxSVl0bieic3kb9tOe3LX5a 1F3O8+B2eB1u59i5HALQy8E2MPA6SyZDFVPImz8U6EinSCHS6bXB2fLEgWMbEG6Q2CxA BJ3g== X-Gm-Message-State: AOJu0Yx7ReiTI0ndMk67r6r4GNCbyh5Zfd4RCyMW3rYayEhmmj+jxYy1 DHaCcxIDjH5Gy/ndj8O+gUE/IzZcYY0yZ0+dDR7CAS2HSsbQuUKl X-Received: by 2002:a5d:630d:0:b0:337:c116:d741 with SMTP id i13-20020a5d630d000000b00337c116d741mr220840wru.255.1705583155464; Thu, 18 Jan 2024 05:05:55 -0800 (PST) Received: from Ansuel-xps. (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.gmail.com with ESMTPSA id c7-20020a5d4f07000000b00337876596d1sm3983995wru.111.2024.01.18.05.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 05:05:54 -0800 (PST) Message-ID: <65a92232.5d0a0220.44e3f.f721@mx.google.com> X-Google-Original-Message-ID: Date: Thu, 18 Jan 2024 14:05:53 +0100 From: Christian Marangi To: Linus Walleij Cc: Geert Uytterhoeven , Russell King , Andy Gross , Bjorn Andersson , Konrad Dybcio , Arnd Bergmann , Ard Biesheuvel , "Russell King (Oracle)" , Nick Hawkins , John Crispin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] ARM: mach-qcom: fix support for ipq806x References: <20221021181016.14740-1-ansuelsmth@gmail.com> <63531543.050a0220.b6bf5.284d@mx.google.com> <6357240c.170a0220.999b2.23d6@mx.google.com> <65a7d352.050a0220.ee5cf.f69f@mx.google.com> <65a85cf3.df0a0220.9615c.a798@mx.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Jan 18, 2024 at 10:02:37AM +0100, Linus Walleij wrote: > On Thu, Jan 18, 2024 at 12:04 AM Christian Marangi wrote: > > > Some followup on this... I manage to enable DEBUG_LL and can have debug > > output from the decompressor... > > Yeah that is helpful! > > > From what I can see fdt_check_mem_start is not called at all... > > > > What I'm using with kernel config are: > > CONFIG_ARM_APPENDED_DTB=y > > CONFIG_ARM_ATAG_DTB_COMPAT=y > > And a downstream patch that mangle all the atags and takes only the > > cmdline one. > > > > The load and entry point is: > > 0x42208000 > > > > With the current setup I have this (I also added some debug log that > > print what is actually passed to do decompress > > > > DTB:0x42AED270 (0x00008BA7) > > Uncompressing Linux... > > 40208000 > > 4220F10C done, booting the kernel. > > > > Where 40208000 is the value of output_start and 4220F10C is input_data. > > > > And I think this confirm that it's getting loaded in the wrong position > > actually in reserved memory... But how this is possible??? Hope can > > someone help me in this since I wasted the entire day with this and > > didn't manage to make any progress... aside from having fun with the > > head.S assembly code. > > I have no idea how this happens, but when I boot images I do > it using fastboot like this: > > fastboot --base 40200000 --cmdline "console=ttyMSM0,115200,n8" boot zImage > > So I definitely hammer it to boot from 0x40200000 (+0x8000). > Consider that this is uboot so nothing about fastboot. Without AUTO_ZRELADDR enabled this is the output from the decompressor. Starting kernel ... DTB:0x42B214A0 (0x00008B79) C:0x422080C0-0x42B2A040->0x4349C600-0x43DBE580 DTB:0x43DB59E0 (0x00008B85) Uncompressing Linux... 42208000 434A362C done, booting the kernel. 42208000 input 434A362C output The DTB location match but I can see the ADDR to the right place and getting moved to a new location (I assume as it would get overwritten by itself...) guess the main problem is mov r0, pc (line 279) With pc veing 0x40200000 instead of 0x42200000 -- Ansuel