From patchwork Mon Jun 24 13:14:32 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: 807025 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp1877140wrt; Mon, 24 Jun 2024 06:15:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUPt6/ddQpuG696nuLA5sDpxoEMA23xJKZ5TkT5pGg9bOh5gGiF0RptD8C7IWiO9iAOsJC2K0gC48m+QQzgc3by X-Google-Smtp-Source: AGHT+IHqM/ZREqqxLlyKFI0UiLgqpxBeDma3d8i4ucLNgbCHcksKEVyN0tvNzfYuJT3NjQxmK/da X-Received: by 2002:a05:6870:612b:b0:258:4dcb:7d64 with SMTP id 586e51a60fabf-25d06c1b559mr5277871fac.13.1719234958204; Mon, 24 Jun 2024 06:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719234958; cv=none; d=google.com; s=arc-20160816; b=BbmyM1ERJg9y2c2wsPzknNu/M2X0+GtVyBqJzUjLj8mFOpuk3dPkq63pWNJy7uSfEu jeJQ3AG0Mu6jRn2cI2hmzfKG6ZNwBxetQiUNT+0le4YScF4VsLNcbU2PxJO17aaVv9ll zi4154fN1Q3yuqJkCXmRqhWiDd9r9EtuygryQHLCgebPeBIk/4NTSp6n9qrQnSqe7OQi Eb+3ffinDd2jh/0pIwdNndDEizxNVc24zbRd/jHugWGdPxbqodwCFzhFloZ4rb1dXoFg tM2ZMqHZClLHiQaqlf2S6dsCfpa6kljpZZCdckqOzd8z8v1Todbr8DuQMmvE/VGdgoyF GVxg== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OJnTXjeu6vchkfoyUhTtN0woxxCm+FO3y7c+ViS30WY=; fh=/TyiCVzPJVYkT4NtrOYZRXAcrkaiLXA/rwqp4QqIc5M=; b=iBvVSQYhPV9VREMZqrJ9Bx7d26TYctKEAW0DntPujA9B50+rE++6Fvt+MFaMQFAoqG XBenfHK/QZf9y8QL9z2SuZSpT2mPIKhGBbreq/fqPD1nEq8fD6rlkUKS6hrALs8dLF6P 9eVpM4W3IgnUGkvcd+hZHNKK5Lf1dFuG2JOhXgn4UwGBGgkRG7AZpBjHjVQWubaLJNDY mB2Ji9ronRkFkAsbNddVN6OwIbq5wWO13FbCuTSoQiBaPAkjGra3gDx9ZKMIBUR3TEJT LcjkqSx8nnI9UYwetALyezXPKmrUGk60iLOTr/7QPAYVwWfdT8Q4QA0mqti0QUaQ+TpO fOFw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iq5bvPnE; 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 ada2fe7eead31-48f510fcd18si489506137.725.2024.06.24.06.15.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2024 06:15:58 -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=iq5bvPnE; 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 1sLjXx-0002rX-Rp; Mon, 24 Jun 2024 09:15:49 -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 1sLjXw-0002mq-Bc for qemu-devel@nongnu.org; Mon, 24 Jun 2024 09:15:48 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLjXu-0005Vf-Jn for qemu-devel@nongnu.org; Mon, 24 Jun 2024 09:15:48 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3620ee2cdf7so2765564f8f.3 for ; Mon, 24 Jun 2024 06:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719234943; x=1719839743; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OJnTXjeu6vchkfoyUhTtN0woxxCm+FO3y7c+ViS30WY=; b=iq5bvPnE7yPZW80eNVcyaJ1HBiMh51MaGmzBaLCpCNLEG/momRb4++LBnxHEXpNY83 qrKfXVzDUzWfxcwBI2cN1SrN1XZK8+kBeFX+Ov8S3T85bYM4LJWUrMJ7gZimX9gQ5AjR IWAUZxY77StPAM2qfcGMkNRoOzZUHBMJRowQot8mzPh/5kEWy/wrN2twrhkgp5Hv8LQm qHK2z7szBPeKL0/U0RKbmduGOMHe3BYsjJFkgxqd0w7vUUYEWknK5Z7EJNyh8mQ3uK8E TY3S6qyZrydBqXXBu4srjDPbqKiUGcpfStUDl+w3E7Nf507cLuWggB7rAEZHTjH6QsaR tamw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719234943; x=1719839743; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OJnTXjeu6vchkfoyUhTtN0woxxCm+FO3y7c+ViS30WY=; b=jAqP0V4DhpC8v7fs5Quzfr1BBsAkwEwiUDoqsLEv2wHPekVGRePIpCg7gVPaWOONY2 bZy9TaLCRX5aygCiH4vJNlmc8u2EEzc3d5cVNGM3X5sZumt7ES/Nnt4gaLaovZUajq5U uYIP0FGzEgoII/j5SFmy/A/T+cPrEUafUU0KIwM8cvruShlFjnD3t6LckA/BTf8KGC6d G8+mfaju7ygLogDAFVIVQm0LC48cEnM16dvvVnAYTdWlMiln/5cH5s6KSLQnEPfn8vPF tyXX6vtypM9FH5E/AVomWzoiqNlghbLPRRCF9LCP7RKpktBFw1MV58VivXtHZcUyRlLH EKJQ== X-Gm-Message-State: AOJu0YxlA+y/T67liDjss/iCVhpLquaetTyn3irYXXqnVou0nIO0iTiJ tRemIis0btRSPqoyf6dz5153Wlgo1p8Yi3BQt6ogPIMDdws9ec64PdHJhzhxTqNme5nuY3UjJb6 7 X-Received: by 2002:a5d:5f48:0:b0:366:e90f:3758 with SMTP id ffacd0b85a97d-366e90f38b2mr3986933f8f.10.1719234943421; Mon, 24 Jun 2024 06:15:43 -0700 (PDT) Received: from m1x-phil.lan (bd137-h02-176-184-46-22.dsl.sta.abo.bbox.fr. [176.184.46.22]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366ea4c0d9dsm5018823f8f.0.2024.06.24.06.15.42 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 24 Jun 2024 06:15:43 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?C?= =?utf-8?q?=C3=A9dric_Le_Goater?= Subject: [PULL 11/19] hw/sd/sdcard: Trace update of block count (CMD23) Date: Mon, 24 Jun 2024 15:14:32 +0200 Message-ID: <20240624131440.81111-12-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240624131440.81111-1-philmd@linaro.org> References: <20240624131440.81111-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=philmd@linaro.org; helo=mail-wr1-x433.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 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Cédric Le Goater Tested-by: Cédric Le Goater Message-Id: <20240621080554.18986-12-philmd@linaro.org> --- hw/sd/sd.c | 1 + hw/sd/trace-events | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 4afb6988c7..44225bae9b 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1090,6 +1090,7 @@ static sd_rsp_type_t sd_cmd_SET_BLOCK_COUNT(SDState *sd, SDRequest req) } sd->multi_blk_cnt = req.arg; + trace_sdcard_set_block_count(sd->multi_blk_cnt); return sd_r1; } diff --git a/hw/sd/trace-events b/hw/sd/trace-events index 94a00557b2..724365efc3 100644 --- a/hw/sd/trace-events +++ b/hw/sd/trace-events @@ -43,7 +43,8 @@ sdcard_response(const char *rspdesc, int rsplen) "%s (sz:%d)" sdcard_powerup(void) "" sdcard_inquiry_cmd41(void) "" sdcard_reset(void) "" -sdcard_set_blocklen(uint16_t length) "0x%03x" +sdcard_set_blocklen(uint16_t length) "block len 0x%03x" +sdcard_set_block_count(uint32_t cnt) "block cnt 0x%"PRIx32 sdcard_inserted(bool readonly) "read_only: %u" sdcard_ejected(void) "" sdcard_erase(uint32_t first, uint32_t last) "addr first 0x%" PRIx32" last 0x%" PRIx32