Message ID | 1613982039-13861-19-git-send-email-sai.pavan.boddu@xilinx.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1075587jap; Mon, 22 Feb 2021 00:18:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAnFpGHJijaXDjbBRP4/hJaKchBn2ekTG5QSONL30w48aKB+3BMgP3gWWQ+Tt8zkqaKTSu X-Received: by 2002:a25:aae2:: with SMTP id t89mr6153263ybi.63.1613981904085; Mon, 22 Feb 2021 00:18:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613981904; cv=pass; d=google.com; s=arc-20160816; b=08fnenaYk+KG+zuAhhG4MWLK8ArpdQwZQFRzl6ZsgBEsPcc+4EdMUZJAmbnia98C90 fMWq17zl2FODOYRHoMrcvvo/wHzsMuLBVQQ3CjIED8tuPgltniPNoO4g/R2FIZ22l2n5 kj25VMlJvrBdag09DWaULUgnDNmINMW1M0h9kmwixR4zjsX2+7VA/nZW/I053rZO/xOC XsbeW/zTQCqMdKGWJsX8SR4KQaK/X7mJQ2b9EL6MyCXEjuUdotiiH4F5hkkf6LpfT8vQ khxdj4wOHOm9sIwm3zIuWrEmiSOcJOM8LLsuoFJp7QRG9oaaPenHrMxl0vvSEltYfy94 wjQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=FmYgjZOz2YY3wvMI+yY8F7lYFDU30x9TPh5GS6x9oA8=; b=ILgOgSLBYKz/qt9uOYI3FYuejiHNkb7sa0Ik9LKeHUmSLLHANIyjqpMSSutKX/Iqmk 4E+zWXd1waen9t8YlH8bvx0vyNSJn0BQJv3Xp7X45QTxnPP1GCVjAg3phknnUv9NokGp 1S7298Hx8+plowR19bAliPak2slUaKCdI9U/2KOh1Pye1bypwjpBXZVSMuTOQZwRjHdK i0+Ycu5e4wCN7qo6VmhUsSCflqt51pGYcCqa5H/+3gpIue1CdkPtK40crq2PvWsRYo7B 4L81VMx9HSJzMkR8+rV/4U0GA5IY0jo/R6ZC2UyIJT5NKh9Jx4Jm32+qyEyVYP78KE9A W1Hw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=rGN7BwXE; arc=pass (i=1 spf=pass spfdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p68si16655780ybc.51.2021.02.22.00.18.23 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Feb 2021 00:18:24 -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=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=rGN7BwXE; arc=pass (i=1 spf=pass spfdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Received: from localhost ([::1]:38754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1lE6QB-0005H7-Dv for patch@linaro.org; Mon, 22 Feb 2021 03:18:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <saipava@xilinx.com>) id 1lE6O8-0004ZE-O6; Mon, 22 Feb 2021 03:16:18 -0500 Received: from mail-eopbgr700049.outbound.protection.outlook.com ([40.107.70.49]:4167 helo=NAM04-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <saipava@xilinx.com>) id 1lE6O5-0001lB-US; Mon, 22 Feb 2021 03:16:16 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I1xXBoA+wxBjwGTxpeuj2Ep2sNDOda2RC7GXM/9fECLS+xuZpsXBtlXjJ8WvSnxNGpg7VboQIKCUC8bSBkwH8u3Anl4FHDHbnTi7DLpN1BEWpmSnMlXEEVtuI6Sxb8OR8ODidt6CsaFVsT0zy5gtwZ7fCAgXR+NY9uax8T2NBarrwqB4j6Ruxrba2vqtqW8YvNIXYKh8nWvh1oSgMKGTqgCGNLSV4fdBCghoqFp84Rucv8Okqz+u5Wi+n/ZoQMFrrrvh2pKj81+Z5KeUGQ++IZb4ElowtE75bOlWlLpGlLKy7niwXuS1ADwY0v9kHusbbsRj+QCqWUpRUaWxQND3EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FmYgjZOz2YY3wvMI+yY8F7lYFDU30x9TPh5GS6x9oA8=; b=bOrjCpt9l70NPTYYAgotNAE0jA/LyqvMDBX9t4Bi2h6SOsDHjBSmRJVneFb41n9CtG9hMSXnmaCRDPIVFNcs53qFIYDbDzd/rgILJnVBXI3wq2Iw9TwbijbSuwYE01jOcjacvZBoY1VsjQ3jRFRpclgqRx8pi1k0XUyYMp+FAEGWa2onTDnNLc2lg+L4Aks7pB4LQZRMkqYQmI97S89lsy+s05vZB/FuQ6h/WpurRIg2Ot1jV4cfe3689hHu4X/1YkFDxjpGlw3Qsv4C808AF/mtzlPi7i/5UCBUPx/TBZoi+9VXElpuo8QMyIzZELJQU9SIBL9tIOIlI7ZNEMBv4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=chromium.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FmYgjZOz2YY3wvMI+yY8F7lYFDU30x9TPh5GS6x9oA8=; b=rGN7BwXErZJzyIBdMKXT+Guumjsxu7JM2CX/EBW4PVt90kZRraHrP5oXN3Twr8v7YQw2o+/XznhEuov2X7Azvkk6+a5EIL6hd+6fhVcLt5xKgwhsNXSsZGoBYTTM6gvnEvywSGf9gfXUpekJ0VMgkUkpYW3R+3fN0YhMUTeuJYo= Received: from SN4PR0501CA0081.namprd05.prod.outlook.com (2603:10b6:803:22::19) by DM6PR02MB6905.namprd02.prod.outlook.com (2603:10b6:5:252::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.29; Mon, 22 Feb 2021 08:16:10 +0000 Received: from SN1NAM02FT046.eop-nam02.prod.protection.outlook.com (2603:10b6:803:22:cafe::97) by SN4PR0501CA0081.outlook.office365.com (2603:10b6:803:22::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.9 via Frontend Transport; Mon, 22 Feb 2021 08:16:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; chromium.org; dkim=none (message not signed) header.d=none; chromium.org; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT046.mail.protection.outlook.com (10.152.72.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3868.27 via Frontend Transport; Mon, 22 Feb 2021 08:16:10 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Mon, 22 Feb 2021 00:16:01 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Mon, 22 Feb 2021 00:16:00 -0800 Received: from [10.140.6.35] (port=59040 helo=xhdsaipava40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from <sai.pavan.boddu@xilinx.com>) id 1lE6Ns-0004M3-Ku; Mon, 22 Feb 2021 00:16:00 -0800 Received: by xhdsaipava40.xilinx.com (Postfix, from userid 14131) id 32E2313C0ADF; Mon, 22 Feb 2021 13:50:58 +0530 (IST) From: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> To: Markus Armbruster <armbru@redhat.com>, Kevin Wolf <kwolf@redhat.com>, "Max Reitz" <mreitz@redhat.com>, Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>, Eric Blake <eblake@redhat.com>, Joel Stanley <joel@jms.id.au>, =?utf-8?q?C=C3=A9dric_Le_Goater?= <clg@kaod.org>, Vincent Palatin <vpalatin@chromium.org>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Thomas Huth <thuth@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, "Alistair Francis" <alistair.francis@wdc.com>, "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>, Luc Michel <luc.michel@greensocs.com>, "Paolo Bonzini" <pbonzini@redhat.com> Subject: [PATCH v2 18/22] sd: emmc: Subtract bootarea size from blk Date: Mon, 22 Feb 2021 13:50:35 +0530 Message-ID: <1613982039-13861-19-git-send-email-sai.pavan.boddu@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613982039-13861-1-git-send-email-sai.pavan.boddu@xilinx.com> References: <1613982039-13861-1-git-send-email-sai.pavan.boddu@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a10f664b-33c7-45ef-2406-08d8d70a1cf2 X-MS-TrafficTypeDiagnostic: DM6PR02MB6905: X-Microsoft-Antispam-PRVS: <DM6PR02MB69051FF78719E44B406EA12DCA819@DM6PR02MB6905.namprd02.prod.outlook.com> X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VmPJoylYM89Vu/vvacCUfjLSEEsGi7WPIR+VHY07XUtRyELH0/l+K1wyAU/D2Gu0lE5XgpuEsaDraoSQb0buhfUJ6nCGG+No5xIQTeVttjEbx8WdEkSHkYqukKXP49pUJ5oPCR+VizCCMnqonNpo7YLfYBJR4g2SwR7fBkNCsI5q8k1/8t8koiwmcXpW5YMnJt6/E/JdwNcTHDrujPrbiuf7Ji1AUfl/afPcJuwU3fkeX5C9+ratGpt42HixRTGmjer77gBw0kTTnH0Sm4vAZld1uT9gqnq9NyXYvaXi/AsDIhJau5mBvjaVjTug4lvbWaVQESPpTP1jBfIgJxHmSoP9lCkgloGmJL61FpzDQfsWv7Bdh+dXQdN06NKZcnITdjKB7cHbeVBMfXPD6PiH4okuKslWrRr78S9ZMU47jYbDv6zWAMJJ/ccu0Yc034wX2fWtne+I0czm1KCx83Q/TiQOcn+0dtiMw9ufQVMD8vbhBlWli2F8sqil4KC2TXX9y9aflY5LhEf+Hzxpxn667qtlbYUvvKTTRxMWZnACDC3kS00P6eRirKQFXjF3Lkp42yroKmywXiqyoJt+JuHpSjRb7oFsUy3gIzu6Z6g+khrFlZdlIJ2H7mKk80tVuXnsFEbh9cPU92jB9wjCFn4HeASorf1GrR5o3xbQQ/fVdKRq9D1dVEv8oq7ASqPaWgLq/e4d7yZNImheOnR5PPSGdw== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(39850400004)(396003)(136003)(346002)(376002)(46966006)(36840700001)(921005)(426003)(2906002)(6266002)(2616005)(47076005)(336012)(186003)(8676002)(107886003)(36860700001)(478600001)(8936002)(82740400003)(26005)(5660300002)(82310400003)(4326008)(356005)(70586007)(110136005)(70206006)(7636003)(54906003)(42186006)(6666004)(316002)(36906005)(4744005)(66574015)(36756003)(7416002)(83380400001)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2021 08:16:10.7401 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a10f664b-33c7-45ef-2406-08d8d70a1cf2 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT046.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6905 Received-SPF: pass client-ip=40.107.70.49; envelope-from=saipava@xilinx.com; helo=NAM04-SN1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: saipava@xilinx.com, qemu-devel@nongnu.org, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
None
|
expand
|
diff --git a/hw/sd/sd.c b/hw/sd/sd.c index ab29e54..a0b4507 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -653,6 +653,11 @@ static void sd_reset(DeviceState *dev) } size = sect << 9; + if (sd->emmc) { + unsigned int boot_capacity = sd->ext_csd[EXT_CSD_BOOT_MULT] << 17; + size -= boot_capacity * 2; + } + sect = sd_addr_to_wpnum(size) + 1; sd->state = sd_idle_state;