From patchwork Tue Jul 30 09:21:33 2024 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: 815271 Delivered-To: patch@linaro.org Received: by 2002:a5d:4acf:0:b0:367:895a:4699 with SMTP id y15csp210295wrs; Tue, 30 Jul 2024 02:22:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXpAFaOE4B2GyK41lM2bJodJbkBxBWVhJKhrKdrhJSR9vPDmsgJkvffGJfG426H6HtDbN5ZRYHMba1sFXaLx1sw X-Google-Smtp-Source: AGHT+IE9xr9GbQvnfK0xWU5dmJHLPhXDNyjAIeopuCA6uHmhEYWMk/sYuQnqblvLWJzfjjnFVzWU X-Received: by 2002:a05:620a:2548:b0:7a2:1bc:be05 with SMTP id af79cd13be357-7a201bcbf70mr190335085a.31.1722331340517; Tue, 30 Jul 2024 02:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722331340; cv=none; d=google.com; s=arc-20160816; b=B0AwvUuPgYzJnyFuwN5Vi8m0O8of+XgD1QdVGR4j6aP+a8/xr8ePAcpsavPdKCOKBg BG9BBdMs8MxtgKqm84eLstsDxJd2qQ3IWgSydTrIVNT3qEekfQSMwSKB8t7ogyt2/Qm6 oUL3+Kf4z6RO95ri1ej24u0JoYMGuB60JAhXuw+6Cte0ZH4x4Mwlt/Fo7oR452CKbrwF 63r//RVNFs1pMZZmbWmb40J760QiEVwkXJmVhJXV7U/m/ky80edTVV1BYtMJlzxVMa7K UXsZurGpAeKQkpVhguA2R+8/ol7AiHs8xmpCTHPRke56tYOk68921GV5393w/TacdpPu nURg== 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=J2N6UK8uHbxi3eCn8ReorNNbyVuGWkhstFEP8svUNrI=; fh=0a1hE22G74W5F4G5a1EIh7TNSrHN0drAqcdv1Y9cvc8=; b=gOfP+GT4gISoJwju+ef1xxZKpLgjg3GaAzEK2z0pCiMwXnNM5nLhIzXuC+zOErp8Mu j2qby/xNcw5M7W4USKXTRsDsoEyMqUxg0/Gxl6yuh6P3YNsVdyihBI5W67Fz/LF2OHB2 06jaVa7syJ3jWM+qTtiAc1BUTizQaxlnp3XwRyQX2EPVqF6pE2pEvEauLX2CExH6EoRE +0oqwrAs9x/yFD/IlzNEsekbZyyDggvyQZ9g5I3APgVVaoHrhJAdXY6OW/P/ez05NKRL siv9b3LMW49Mx+dkxtO3274fcfuM4kkXO++kqpYZOHuGwUHT+c026wbiJRZzBK/INwli VzNA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gsJfRToL; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a1d7399b7esi1232481485a.109.2024.07.30.02.22.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Jul 2024 02:22:20 -0700 (PDT) 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=gsJfRToL; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYj3G-0008Es-Od; Tue, 30 Jul 2024 05:21:50 -0400 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 1sYj3E-0008DT-2j for qemu-devel@nongnu.org; Tue, 30 Jul 2024 05:21:48 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sYj3C-0005ib-Eq for qemu-devel@nongnu.org; Tue, 30 Jul 2024 05:21:47 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4280ee5f1e3so24937775e9.0 for ; Tue, 30 Jul 2024 02:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1722331304; x=1722936104; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=J2N6UK8uHbxi3eCn8ReorNNbyVuGWkhstFEP8svUNrI=; b=gsJfRToLFhpIWSHcxhuiW4hrbnJ7YygIxdWe9qKk3U0oQjlsTq4udQb7ZllD2h7OHP 5TPW2CQqtGSMRIUwfKgisMCxtoc3/wK3yKuRRcZ7XHpcfR6m9+yqJ+jHRfJxCZkm+eyk NEnLYCMnVttoZTKHn58/wQ3ILkQP3OrKGWU1hkBVkONBNC38JRwThPdO9xG+PbJxeGhc 6ASSZS4pyChQzAFP5qkp9h4tO3velQuPuCe4QP5vAeKCONK58dZ1o3kPAFFg97OwYkSx zk1aHgQSFLUdldCOgvmSwze8KfQyb2MW7dusm1cpgjmszhbZfyWThmRhXvOR/RrfKaH7 NIZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722331304; x=1722936104; 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=J2N6UK8uHbxi3eCn8ReorNNbyVuGWkhstFEP8svUNrI=; b=ky85VFby3GgsaYYqlSUqDLfU92KfjFzCGikRYb8Jtf6Qi4SXBaOh8+BC776Dddv5hY TgfwVaArwLyoXVyDmEU6R6CXkaUvYyaFTm4QWsQQ3cJuNJacRgC9TEd43Hy7y1fHbStL Ns3rkHCoeast2RUjEGdnRrz781Fs1O7X4LTiwIwMhHn668HyCGKlQHuYmcss7aub1Pky Q5OribYpa5uXLJgdi5q+kEmtJXONOOIaQRmyYRy0QxjE0s15SPCpazHJoD45xgfQptKm ICy5nVxvBsTDfeNjFI3YFYYClkiOc7/nXc/4+yMyKJH2kBNvv2DbyUeQ6vVgqEgwaO4C qMuw== X-Gm-Message-State: AOJu0YxnHDOfD9rnHGtxNO66ES8dSVrz3ADH1Q+U2DveGvBAXMJiFzCJ SQHg1xn6ckPV5TyU2JMm0rvQObSSQ7BViyG7tfceSaVQ7gFtG3kCPKORNGWnHyxhnQRRUN+4igF p0L4= X-Received: by 2002:a05:600c:19c9:b0:426:50e1:ea6e with SMTP id 5b1f17b1804b1-42821a5e245mr21961295e9.18.1722331304318; Tue, 30 Jul 2024 02:21:44 -0700 (PDT) Received: from localhost.localdomain (82.red-88-28-10.dynamicip.rima-tde.net. [88.28.10.82]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b36857fe9sm14472415f8f.70.2024.07.30.02.21.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 30 Jul 2024 02:21:43 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bin Meng , Zheyu Ma , qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-9.1 0/5] hw/sd: SDcard & SDHCI fixes Date: Tue, 30 Jul 2024 11:21:33 +0200 Message-ID: <20240730092138.32443-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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=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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 3 fixes (2 fuzzed). Philippe Mathieu-Daudé (5): hw/sd/sdcard: Explicit dummy byte value hw/sd/sdcard: Do not abort when reading DAT lines on invalid cmd state hw/sd/sdhci: Reset @data_count index on invalid ADMA transfers hw/sd/sdhci: Trace ADMA descriptors hw/sd/sdhci: Check ADMA descriptors can be accessed hw/sd/sd.c | 16 +++++---- hw/sd/sdhci.c | 89 ++++++++++++++++++++++++++++------------------ hw/sd/trace-events | 3 +- 3 files changed, 66 insertions(+), 42 deletions(-)