Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp500302rdh; Thu, 23 Nov 2023 09:32:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IF87CKodbU1ubKHwg8sztXyMoSwaHHuQP4IQJqzoJVnw90X76dAu3ptfSNzDQIcbgKdN68q X-Received: by 2002:a05:6a00:981:b0:6c3:720a:157a with SMTP id u1-20020a056a00098100b006c3720a157amr185693pfg.12.1700760736464; Thu, 23 Nov 2023 09:32:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700760736; cv=none; d=google.com; s=arc-20160816; b=NHmh/CDlboE9/IWiWnSm2ZL5WCMQQrVpvrl5bgylkrvdRoMgeHqPCFl/a+BeMt9ZfC S9cQ+OG1DXxnDer39sNUZgjiJ+UqWXq1P1EEMezBPLtDAcGh1bHVvx+PIkzrN3Bju/2B Rur/0kalqQgtwhHKv3Gd++nY+y/sxC9OR/1krFtpR9qSMXOjQgRthOFgSPSr6zT0zwGD +sqLrpzryMFXHvIeFveyrT+qdGPA4gtygAJ1V18XNizeRfRVAKM8Zzvn55qaiW8jyFNS RM5O/hoEfiies5JKtslle275RlCKj9Z4D/nhvDggPWyMAdfs3tk0oG0eI8JuCYFizNR2 RtYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=r7YWHIfKs1lRtQljNoq9n0N8njCRxKVxB0j/oEqFGJ8=; fh=h/HuWWxOMipjDIzWNRZLfmyuNEw2GVMeDgfMC7L2+F8=; b=w3K+oiduH0gzF0zSUhdzOqOUCWe3jLOZwrGruFr1jrS5/LrxnkwNikVlMgP5xTxtjt 4vUd8MnSSdcL6z8pvHrKw/J6VoqV/rgDAImOUrwIXDTWmAnUMKnElitmBW01WRthJYVs JJ0MlgoSA9njcd1HlhAYkQ2F5dhMkv6Sxz41TQILlCS+slLLZ2Yo8V5flKv8PL6S9sD6 Mz+Tjajjrmo+mJl68XeYgClm1D/F8A5Om0jrM8NLTb9PLlasrXpvkEeQvxl/O5TYSKWE dYQx6I4RwI+/lPf1aloKVAFg+HEN02aN95Dv0w5T0Z1AkLi3LD6PWLulTvUfqIJzGZZY Ifvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=gcuciQNH; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=kv69WDjo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id cl20-20020a056a02099400b005ace065e529si1833304pgb.333.2023.11.23.09.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:32:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=gcuciQNH; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=kv69WDjo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EF0A480CC124; Thu, 23 Nov 2023 09:32:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345497AbjKWRbz (ORCPT + 99 others); Thu, 23 Nov 2023 12:31:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345172AbjKWRbx (ORCPT ); Thu, 23 Nov 2023 12:31:53 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39B78D44; Thu, 23 Nov 2023 09:31:59 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 051533200A0C; Thu, 23 Nov 2023 12:31:54 -0500 (EST) Received: from imap44 ([10.202.2.94]) by compute3.internal (MEProxy); Thu, 23 Nov 2023 12:31:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1700760714; x=1700847114; bh=r7YWHIfKs1lRtQljNoq9n0N8njCRxKVxB0j /oEqFGJ8=; b=gcuciQNHPyLhNrt9hMusqeRhRHncBl86lxovPoBIi0uz5ETFy35 sy26tYy2lcezp4at8sXuI+gxGYBpZmL0463jgrb4tmk1Pc+ZU1nInpXvNbuOjFGW ZvHwdiu9HmlPH+FxyQOU+RKAWmgnqxwRZYRsADYnGR1AJvGcgoCw51rgIKtVXEei tV7LX/kHuvfNU0Jr/pTcJWPYPS9/UJdPFgL3F3SOeYfTUgoDFncfyU/oCu7or3VJ H5Sq+h4N5U/Vlb6rTUL34x5kXeLlMabxOZJ0qrUfLIWkxFN4gspnyNUMvW57Tcoy 75UKOblrACO/yOiHnAQJm+i4DJr6OwU1Log== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700760714; x=1700847114; bh=r7YWHIfKs1lRtQljNoq9n0N8njCRxKVxB0j /oEqFGJ8=; b=kv69WDjo+qyKK7pmC0j7JuBlJFHfQw3agKWMBEE9Sfc4gMBXits bUB7y2f+s3m5leDUyYdRYSZ+UAYkCUB6YZZoUj7W8s7KEgw8J5rq1mY43enhdCVc 6KJQLsBFLtUnUVR7KQZYmzXaNWe36bsCFX3l5vcYYni5n97sGESyyDP7Z8SXQWo/ BvAKYZlkJN/GSBbzkJTU7IIemoAjwNZDuNDP4c5jxhQo7pqNDaEpb1XEETLTsTFb sHFhlkD7FKtOTCzILVXKwpVybK8D06hu+2rzNwUvI4dVM1eLdiOtaDKG4NE1aQEr Il7an2b45E1XkS+dKAGNNXF0UQkLUjMu00w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehfedguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf lfhirgiguhhnucgjrghnghdfuceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtg homheqnecuggftrfgrthhtvghrnhepkeelveffhedtiefgkeefhffftdduffdvueevtdff teehueeihffgteelkeelkeejnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdr higrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 04C4E36A0075; Thu, 23 Nov 2023 12:31:54 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1234-gac66594aae-fm-20231122.001-gac66594a MIME-Version: 1.0 Message-Id: <32db8a76-7842-4d04-94f1-67e3984cb349@app.fastmail.com> In-Reply-To: <20231123152639.561231-1-gregory.clement@bootlin.com> References: <20231123152639.561231-1-gregory.clement@bootlin.com> Date: Thu, 23 Nov 2023 17:31:33 +0000 From: "Jiaxun Yang" To: "Gregory CLEMENT" , "paulburton@kernel.org" , "Thomas Bogendoerfer" , "linux-mips@vger.kernel.org" , "Rob Herring" , "Krzysztof Kozlowski" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Vladimir Kondratiev" , "Tawfik Bayouk" , "Alexandre Belloni" , =?UTF-8?Q?Th=C3=A9o_Lebrun?= , "Thomas Petazzoni" Subject: Re: [PATCH v2 00/21] Add support for the Mobileye EyeQ5 SoC Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 23 Nov 2023 09:32:14 -0800 (PST) =E5=9C=A82023=E5=B9=B411=E6=9C=8823=E6=97=A5=E5=8D=81=E4=B8=80=E6=9C=88 = =E4=B8=8B=E5=8D=883:26=EF=BC=8CGregory CLEMENT=E5=86=99=E9=81=93=EF=BC=9A > Hello, > > The EyeQ5 SoC from Mobileye is based on the MIPS I6500 architecture > and features multiple controllers such as the classic UART, I2C, SPI, > as well as CAN-FD, PCIe, Octal/Quad SPI Flash interface, Gigabit > Ethernet, MIPI CSI-2, and eMMC 5.1. It also includes a Hardware > Security Module, Functional Safety Hardware, and MJPEG encoder. > > One peculiarity of this SoC is that the physical address of the DDDR > exceeds 32 bits. Given that the architecture is 64 bits, this is not > an issue, but it requires some changes in how the mips64 is currently > managed during boot. > > This second version comes a few weeks after the first one, because > there several iteration to support having kernel code outside kseg. > > To build and test the > kernel, we need to run the following commands: > > make 64r6el_defconfig BOARDS=3Deyeq5 > make vmlinuz.itb > > In order to get ride of the aliasing patch I got, I followed Jiaxun > Yang suggestion by splitting the memory in 2 part: low part under > 512MB and high part beyond the 4GB. It allows to boot and run Linux on > the platform however as a side effect the number of pages used for > memmap passed from 512 to 8672 which is a huge consumption of > pages. Do you know if there is a way to reduce it ? The best workaround is to enable SPARSEMEM, that's why I sent[1] :-) I'm going to reversion my XKPHYS work to fix some other issues I found. [1]: https://lore.kernel.org/linux-mips/20231028-mm-v1-0-45377cd158cf@fl= ygoat.com/ > > I also noticed that if the kernel can't be in kseg0 at all by using > low memory at 0x40000000, then I got the following message during > boot: > --=20 - Jiaxun