From patchwork Fri Jan 20 13:43:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 644649 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp788106pvb; Fri, 20 Jan 2023 05:44:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXu4N2721vPNtZ4Z+TuW5aIzFKckZwwii7+v/+AvDAntUv/+ZQjFl8uVWTX6UZ2kuBNDsmYH X-Received: by 2002:a05:6102:274a:b0:3d3:c424:4e68 with SMTP id p10-20020a056102274a00b003d3c4244e68mr10380074vsu.0.1674222289770; Fri, 20 Jan 2023 05:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674222289; cv=none; d=google.com; s=arc-20160816; b=GcWLPZzLSP/GD3q7GsyooFPXZz7JpKhYN893UlhRTLwytKV4GYpzemFMRtuQ3mtl47 zsQTT+Nmme9BcNE3MOfUOz/RnjBXHI68vO/L4xc2HF6vaEYLjUoUWpnXIMYHiyYFWuiR TAAjGjm16R/ZXJRojC03Nr9h5wAibqrAe+bd0duZMJR/hziZnfQMxylu/68hIjfMm/a5 4BJEDdrzfr/2YLCr0IEuPrAgU+si23Yb9j+lV0+1cKVs3oHePO2SaAUAH7yKe7o3ipry ggOPTlxfxBi1zYm2clK7DSCw8P/sx11xsfhgk7hxHtjr3QP1pVZIb24ua/Css1nD2SbH josw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=gXuDv/C0Rs9dQca1e1w0gMaDH945zae3nzhBwBhgYss=; b=WtiT5Gpo/F52x9IKjCD6miY1F36Hq/hPwgiIW1bt0FZt1A87XD9dJ4MT66ftgPBHoz /QqtegkZmrmD41Mr73S2oyuAgcsEgTfjQIi0r+NqSEoLxqfUSvNeDU/A7s0Y52Ga5GW6 c72/UToT6HT+5Vae/IpTIC9rIqhYJLxz/TzOUHyzfc294f6Kqhw7C+TSyq145m8k+Qth pcyLa0DU7iLXb3Nu/SbNwqG5pJHFWgPrJvsPekLoTknwG55fignnzRRNTZYlefhWJi87 VwVW7Eh6giY4CqVMVel4avkbJbatqTi11jtfcamLfXDcSJSaj2ZEl1zl5hTwI4uQ5SzU HoDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aDdvOcVK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s13-20020a05620a0bcd00b007022894eb72si27535274qki.288.2023.01.20.05.44.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jan 2023 05:44:49 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aDdvOcVK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIrfv-00012m-0G; Fri, 20 Jan 2023 08:43:23 -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 1pIrfr-000111-Sb for qemu-devel@nongnu.org; Fri, 20 Jan 2023 08:43:19 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIrfq-0007WG-7T for qemu-devel@nongnu.org; Fri, 20 Jan 2023 08:43:19 -0500 Received: by mail-wr1-x436.google.com with SMTP id q5so245121wrv.0 for ; Fri, 20 Jan 2023 05:43:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gXuDv/C0Rs9dQca1e1w0gMaDH945zae3nzhBwBhgYss=; b=aDdvOcVKHmz8bhEdKgqTPwFekE8EliPsTF+Sa5oudfNiSOWeY6HC9REVEjxaP0kaeV najG8MqQ5/QpV+1kb8N3jOen8oBs+cEu19dKChriLY4Az9vXM1z85Gj3RPYX9Jq1/cgE gfJ0/IN3RAgEga5qpdaGjgaU99e3hi5Ji+DT0s1kMBlPZuTmkoeE4kce/Pj1Um5ql1WS to4QpA22+taJfLjzbY3YjrIEO62HgsIELO4zV3C+JMSh9imq+dCs5LsB/yp4DWLFkvHP CaGHxZed66BgiQ2ucKUYejZVNcSrR2cmranV9Zg9jjpn2JY4P+WT2Hcl4qv2eg+x7SIx iE5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gXuDv/C0Rs9dQca1e1w0gMaDH945zae3nzhBwBhgYss=; b=dfrTsDpTEGfoDJvQe7ff8MkHeu7Lpo0jjTHyZfuHSGZDNlO7rr4RIVo+hTbhVK8V/5 51E2wHym/9/XR8waKKjsMkT0NtflZomlC6XvWlitmkNi57jWcDJstS1+78G9n554qRqA r2Aw+bc/iTFU/iJoL8dT1QAI5Legg9s7lNIuwPi3iGznztHRchdJFrK423g2z3DHG0y0 pp9uiZwphKcc2jfNGc/rmaRVew4d8+MnYMfDZxlyTybubM7OcOw4pUviYMOBB8xrH8rl TxqokGN0Z5maPkWgvz9B61CSqlUwIHVa+qa23F/sEYRg22ZANs0Dexkq6Rzp6RtoEdDJ NcRA== X-Gm-Message-State: AFqh2koBml2G+f1/IIQD+QC4odMXfcW19qcrjc4LLExshDX8pjgwtygP ZtpB11Np2s4XRIAP0CYCG5QocqFLNWh/7xg2 X-Received: by 2002:adf:cd81:0:b0:2bd:e0e8:694f with SMTP id q1-20020adfcd81000000b002bde0e8694fmr13257915wrj.32.1674222196127; Fri, 20 Jan 2023 05:43:16 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id f7-20020a5d6647000000b002bbeb700c38sm31004057wrw.91.2023.01.20.05.43.15 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 20 Jan 2023 05:43:15 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Beraldo Leal , Wainer dos Santos Moschetta , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , qemu-arm@nongnu.org, =?utf-8?q?C=C3=A9dric_Le_Goater?= , Cleber Rosa , Peter Maydell , Subbaraya Sundeep Subject: [PATCH v2 0/2] tests/avocado: Truncate M2S-FG484 SOM SPI flash to 16MiB Date: Fri, 20 Jan 2023 14:43:12 +0100 Message-Id: <20230120134314.81956-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=philmd@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The M2S-FG484 SOM SPI flash is 16MiB. Truncate the file provided with the Avocado test to avoid: qemu-system-arm: device requires 16777216 bytes, block backend provides 67108864 bytes before merging the "m25p80: Improve error when the backend file size does not match the device" patch: https://lore.kernel.org/qemu-devel/20230119123449.531826-2-clg@kaod.org/ Since v1: - add missing 'size' argument in file_truncate (Cédric) Philippe Mathieu-Daudé (2): tests/avocado: Factor file_truncate() helper out tests/avocado: Truncate M2S-FG484 SOM SPI flash to 16MiB hw/arm/msf2-som.c | 5 ++++- tests/avocado/boot_linux_console.py | 15 +++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-)