From nobody Tue Feb 10 03:40:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.49 as permitted sender) client-ip=209.85.221.49; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f49.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1626037890; cv=none; d=zohomail.com; s=zohoarc; b=PjBsfKeGdlKbiA4O2G4WfkrF0VdTo96XKtZUUwTng0J6zxKoDwYrnUnO5rHMnXGU/ErhSF+DNM7gMgLB8lmLrX87bPy7/Ry40iKs2Zqd4xJdYxqFilUy89zJUuw38s+Ggt4YdzWLf3KPhlMJG3LgByKfe9sBgDIqVL7hxQGB/OQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626037890; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ullh4nTE/uo1kNH6VLUCVAcg39XDupueIapcLcg3Jo0=; b=TxLS/Hfjmm7IPUKOG2x+3BieVGkE3f/233oxWbrenF5M7LwfghkIlqY296dspMhWXAMeMT3iMRRJzJ7gUEO+JnjSVvPlqtFSFYZiIAjGHH+hLL8WzmYy34y9fxCdst2NnD0Dky8mgXq9K2pcp5grst4gUdDRWImgrJl5R61TnMs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by mx.zohomail.com with SMTPS id 1626037890772937.5503493176576; Sun, 11 Jul 2021 14:11:30 -0700 (PDT) Received: by mail-wr1-f49.google.com with SMTP id f17so22128535wrt.6 for ; Sun, 11 Jul 2021 14:11:30 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (abayonne-654-1-142-116.w86-222.abo.wanadoo.fr. [86.222.93.116]) by smtp.gmail.com with ESMTPSA id r67sm6437805wma.6.2021.07.11.14.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 14:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ullh4nTE/uo1kNH6VLUCVAcg39XDupueIapcLcg3Jo0=; b=ZQ29LSe8cYx6Wp0uomFQdo7ITLTGZB1D72T4f1qxpVp27ChQu+nDCJ9wFhy/JkiD1S 0ISFvqJqw/no6qeZdEakC+BD/bkFt6ewEGJ8Gm+CE0OhDsrXW9edseWLbYGKtw8G5o8x F9iNSQppeo2znsnc9gF0ojthNMS6gRG0Hl3UBUFUxlIvH2wJeVpd1oWkcopfKLZ83b0i U7pbWKEThnjFhIkiPcWV+aXkeCDL3eyQz/UqD4ZbNZyjxQ3ZD6DmldfC6uvWFWAYEqXj JvtoHGJHk0Iblaj2L3+peta65IY0AYJXd+VCdc1zE74prMPW199ngyFjup2Gs6H3TNS9 knbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ullh4nTE/uo1kNH6VLUCVAcg39XDupueIapcLcg3Jo0=; b=Ck/zpH0Jk7D6Iy5O0Xo1PwV2USWH8MKpR3WJzfJN/fYU2Ny3he4ZpW4umbb5FRlNe5 CNiMxFzu/HvtnBI0V1XrNHZ245if76PrOjeRMQuhZ9gvtu0I3yiPhSMB90FPtQQZDy0d PuDSXnzHz1aMKpBXd+7h0rxNHljvJiWsUBkn1UK35meS8STvPRwMyPIoIFzJsIYBw+8s 0uzY7oQn0KV0j95zWjLzBKFr7mLnpsFSQZM+SS/yLICXosLrAOe8IvcselYpntzqDGuo 0rvKY1mbVIsZsa/gv3yZcfav98Qb9lQuPhMo9XN+GR0WofMO3WeLFue+2y0wZuHknQGj H7YA== X-Gm-Message-State: AOAM531BSnBrKiCbpA5DJchKAxPDindVSgdzz9vY5oQa577eHrXmH92W Tg4zvjfKb4bRI6ugseuLFyk= X-Google-Smtp-Source: ABdhPJxddhKwt7gi1JUoeBk/ro0ZesDzru6hin49YYInA89v+gpQs4deSfW6/mM5e29cwgMGPIVtVA== X-Received: by 2002:a5d:4bc6:: with SMTP id l6mr17164463wrt.53.1626037888969; Sun, 11 Jul 2021 14:11:28 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bin Meng , Alexander Bulekov , Joanne Koong , Bin Meng , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 4/4] hw/sd: sdhci: Enable 64-bit system bus capability in the default SD/MMC host controller Date: Sun, 11 Jul 2021 23:10:57 +0200 Message-Id: <20210711211057.2714586-5-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210711211057.2714586-1-f4bug@amsat.org> References: <20210711211057.2714586-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1626037892904100001 From: Joanne Koong The default SD/MMC host controller uses SD spec v2.00. 64-bit system bus ca= pability was added in v2. In this change, we arrive at 0x157834b4 by computing (0x057834b4 | (1ul << = 28)) where 28 represents the BUS64BIT SDHC_CAPAB field. Signed-off-by: Joanne Koong Reviewed-by: Bin Meng Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210623185921.24113-1-joannekoong@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/sd/sdhci-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sd/sdhci-internal.h b/hw/sd/sdhci-internal.h index e8c753d6d1e..a76fc704e5e 100644 --- a/hw/sd/sdhci-internal.h +++ b/hw/sd/sdhci-internal.h @@ -316,16 +316,16 @@ extern const VMStateDescription sdhci_vmstate; * - 3.3v and 1.8v voltages * - SDMA/ADMA1/ADMA2 * - high-speed + * - 64-bit system bus * max host controller R/W buffers size: 512B * max clock frequency for SDclock: 52 MHz * timeout clock frequency: 52 MHz * * does not support: * - 3.0v voltage - * - 64-bit system bus * - suspend/resume */ -#define SDHC_CAPAB_REG_DEFAULT 0x057834b4 +#define SDHC_CAPAB_REG_DEFAULT 0x157834b4 =20 #define DEFINE_SDHCI_COMMON_PROPERTIES(_state) \ DEFINE_PROP_UINT8("sd-spec-version", _state, sd_spec_version, 2), \ --=20 2.31.1