Received: by 2002:a17:505:a60a:b0:1be9:327d:8ee3 with SMTP id qv10csp2545337njc; Mon, 18 Nov 2024 04:37:15 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXAuWGglGJWNPdKbR78HTc7JXZ8+eTpRv2K+BeQMDbY5Y4OggD2HxWbIIb1kIPmj4M+dBIBSiaionwWKg==@linaro.org X-Google-Smtp-Source: AGHT+IGIfG77AiGVjvcwFuiUK1hQMumdeurcmpRSo7bh/Ib21orT5+cub1QVWydZvXrPcBoGnXyb X-Received: by 2002:a05:620a:25c7:b0:7b1:54f6:d1dd with SMTP id af79cd13be357-7b36233106bmr1808100385a.42.1731933435386; Mon, 18 Nov 2024 04:37:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731933435; cv=none; d=google.com; s=arc-20240605; b=jqwSMU8EiPHTm/UF4vEc1BXDuFg7EygouZNG5zyEepJ4qiIlFjVr6ET1iwdV8qW/jU WHEYDFnY8Vn2mEdZUp1DC/A/sojGqnXZASDwNlZfA2YDR0EeCnjfhRbJKX2PYJZd06lE JQ2eF4BJSTrhjsq75IiJq8P4jX52gYaLJ6W46D42B6VHXEoVdRDEmtVPpVKlCNKicAyG /bvgBg3IB0s7YyN0NXg67rpfMbHbcl7Ih1PLwyVU/AEZxRcWVj6ECb3AtF4tjQfi46Al VIQQ5ayWn5Fk6dwm0bix1dxNmG4YK5nFKbNwybOT+Wb7iOzTPps8MfU1wwlQFhuMmXhN YxDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :in-reply-to:autocrypt:from:content-language:references:cc:to :subject:user-agent:mime-version:date:message-id; bh=MMRLwT7Qr0672jk50CvQz9TsE4MYQ4l02y/gmcyZVJY=; fh=TURViqy3K1XvuNZe84OqoeD7o7EPiMW5S65v9dvDmlk=; b=VY7vOryBDW0iNb/kAUubK7QyM22EGqdR6w9pynWB9yMYG0GE8jSOkE3JvHPw/VxlVO J0xT7XrsOHW43ATam+3ZQDlT7fwD//ki2zwFZ+1h7DX5rBKy6Wxx4ireIaJl++UKypf9 0G3567jeX+xcBClzIKMrKUgPUZhRVxBqMRor836dBWMgJIH3vSfBH+L9nz6Qy+yWrIHx kvINYAt/4FpsiUjaW1MAl6SOqFB4O3KWsxdPnjZvVUcE4WgnGKeRtnwImNil6PDKRFHY 1/r6K7j/TsyrXHnrZHwIchjnbE9pn18ieKK9YcetMTSF+cNHOwxhCkMjxqPeoZLA/f/N Asbw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b35cafe00csi1056737585a.663.2024.11.18.04.37.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Nov 2024 04:37:15 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tD104-0002hg-NH; Mon, 18 Nov 2024 07:37:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD0zw-0002gd-DM; Mon, 18 Nov 2024 07:36:56 -0500 Received: from mail.ozlabs.org ([2404:9400:2221:ea00::3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD0zt-0003xv-Su; Mon, 18 Nov 2024 07:36:56 -0500 Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4XsRvd4CL3z4xfw; Mon, 18 Nov 2024 23:36:45 +1100 (AEDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.ozlabs.org (Postfix) with ESMTPSA id 4XsRvZ1HLHz4xfm; Mon, 18 Nov 2024 23:36:41 +1100 (AEDT) Message-ID: <2dea2358-5050-4d35-b60f-623023682ba9@kaod.org> Date: Mon, 18 Nov 2024 13:36:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: backing storage for eMMC boot partitions To: =?UTF-8?Q?Jan_L=C3=BCbbe?= , Guenter Roeck , =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Thomas Huth , Joel Stanley , qemu-block References: <20241017163247.711244-1-peter.maydell@linaro.org> <07664ec3-6b46-4b27-9d8c-9e2ff34c9dbe@kaod.org> <600baa43c3dd3547338934717cfb57c5e12b0d23.camel@pengutronix.de> <84c32f2d-7d9a-4e5a-8b67-1f954dd493f6@roeck-us.net> <53cbb597-e7f2-4742-bf85-928c704ddbcf@linaro.org> <443f1b0c-8184-4bf4-9f68-c23d7de3bc36@roeck-us.net> <1bce4c22-9281-44c5-8acb-860881dc271c@kaod.org> <86fa6e68-5861-4d4d-941f-95b278074eb6@kaod.org> <1c917e4a-de50-45b9-ac9c-eb04d51401a2@roeck-us.net> <00997cca-6f4a-4b99-9616-2af6a25cd4fb@kaod.org> <4246f82b-597c-4a5d-9a55-18a584e7d8c7@roeck-us.net> <670fa7bf052d8f292f9bd25c330c8d7bdba02770.camel@pengutronix.de> <9046a4327336d4425f1e7e7a973edef9e9948e80.camel@pengutronix.de> <7c8658ef-e61b-4a46-91cf-6dc26e78158c@kaod.org> Content-Language: en-US, fr From: =?UTF-8?Q?C=C3=A9dric_Le_Goater?= Autocrypt: addr=clg@kaod.org; keydata= xsFNBFu8o3UBEADP+oJVJaWm5vzZa/iLgpBAuzxSmNYhURZH+guITvSySk30YWfLYGBWQgeo 8NzNXBY3cH7JX3/a0jzmhDc0U61qFxVgrPqs1PQOjp7yRSFuDAnjtRqNvWkvlnRWLFq4+U5t yzYe4SFMjFb6Oc0xkQmaK2flmiJNnnxPttYwKBPd98WfXMmjwAv7QfwW+OL3VlTPADgzkcqj 53bfZ4VblAQrq6Ctbtu7JuUGAxSIL3XqeQlAwwLTfFGrmpY7MroE7n9Rl+hy/kuIrb/TO8n0 ZxYXvvhT7OmRKvbYuc5Jze6o7op/bJHlufY+AquYQ4dPxjPPVUT/DLiUYJ3oVBWFYNbzfOrV RxEwNuRbycttMiZWxgflsQoHF06q/2l4ttS3zsV4TDZudMq0TbCH/uJFPFsbHUN91qwwaN/+ gy1j7o6aWMz+Ib3O9dK2M/j/O/Ube95mdCqN4N/uSnDlca3YDEWrV9jO1mUS/ndOkjxa34ia 70FjwiSQAsyIwqbRO3CGmiOJqDa9qNvd2TJgAaS2WCw/TlBALjVQ7AyoPEoBPj31K74Wc4GS Rm+FSch32ei61yFu6ACdZ12i5Edt+To+hkElzjt6db/UgRUeKfzlMB7PodK7o8NBD8outJGS tsL2GRX24QvvBuusJdMiLGpNz3uqyqwzC5w0Fd34E6G94806fwARAQABzSBDw6lkcmljIExl IEdvYXRlciA8Y2xnQGthb2Qub3JnPsLBeAQTAQIAIgUCW7yjdQIbAwYLCQgHAwIGFQgCCQoL BBYCAwECHgECF4AACgkQUa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-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2404:9400:2221:ea00::3; envelope-from=SRS0=CkxU=SN=kaod.org=clg@ozlabs.org; helo=mail.ozlabs.org X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: wfvwOAN+9QUe >> Yes. That's a "problem" to fix for emmc/sd devices. They should only >> be created when defaults_enabled(), just like the flash devices. > > This is -nodefaults, right? The man-page for that says: > -nodefaults > Don't create default devices. Normally, QEMU sets the de‐ > fault devices like serial port, parallel port, virtual > console, monitor device, VGA adapter, floppy and CD-ROM > drive and others. The -nodefaults option will disable all > those default devices. > > That sounds like it would require explicit configuration of the devices > on the SoC (such as UARTs) as well? Having to specify them (perhaps > even with their MMIO addresses) doesn't seem convenient. :) I don't think the -nodefaults option applies to the platform devices. These are part of the SoC and can not be replaced/removed on a real config. However, any device attached to some bus, flash, eMMC, I2C, PCI, etc. is a good candidate. Some would say that these devices are soldered on the board. This is not always the case (some are in sockets) and since HW vendors offer boards with different topologies, I think we can leverage QEMU to define custom boards on the command line. > aspeed seems to only (or additionally?) skip creation of the flash > devices with -nodefaults. Yes. Flash devices were a good (first) candidate. The goal was to extend testing to all SPI controllers (some SoCs have 8) and also to limit the proliferation of boards having only one different flash model. There is a cost to it : - it complexifies the command line - the machine boots in "execute-in-place" mode which is what HW does, so the model is much more precise, but it is also slower in emulation. We thought about doing the same for I2C. Given the amount of I2C devices on some boards, it didn't seem reasonable and the need for it was limited. We can still attach on the command line I2C devices and discover them after boot. > Isn't there a way to configure only default devices as disabled? That's -nodefaults or I am misunderstanding. Am I ? > Or to > dynamically attach a user-created SD/eMMC device to an existing SD > controller? QEMU lacks a way to identify the SD bus the user wants to attach the device to. > In system/vl.c, I found 'default_sdcard', which is disabled in some > cases. I wasn't able to figure out how to use it or if it would help > for this use-case. May be Philippe can answer. I am not an sd person. Thanks, C.