From patchwork Mon Mar 8 10:30:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edmondson X-Patchwork-Id: 12121911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B07EDC433DB for ; Mon, 8 Mar 2021 10:32:43 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 079FA651A0 for ; Mon, 8 Mar 2021 10:32:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 079FA651A0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:54024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJDBp-00039m-Ro for qemu-devel@archiver.kernel.org; Mon, 08 Mar 2021 05:32:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJD9f-0001sk-Cz; Mon, 08 Mar 2021 05:30:28 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:40018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJD9b-0006G0-Ov; Mon, 08 Mar 2021 05:30:26 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 128ANtGj104340; Mon, 8 Mar 2021 10:30:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=3ROAqPqZEcSIVJBROqMnY+jwC0PqpORgs3RWF822v4U=; b=NBYRwQXcZUTdvBNpN9wpeiChl3VbXg/sE+y7KN1wbJXYM1toKgYLdVUqNPN4q5BRrw+E hBc2tynHGL+CSBpVqdn+u9E8l4iW7oye7Q+RFYBNVxXCej7HZQU0i5YU3x61iM5MDIXo sOl8wmMPS1Vf8E3Kxs6whVz6L6BNCTAKDIfFnz4fsh4vYu0KfsDS3zulQIWotqpqbF9/ UbdsnzLo42P/gp5HKQX8J457RgSx6TlwDQser7E9OImgcxBGAJFNDIRIojfigSB7v+K/ ZYd7KEC6gxP+UMqXNEUHAhYjM+CSGT285z0BkPlpw0njHNNQGxpqkhpkqRYR43Yfstvz kQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 37415r3506-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 08 Mar 2021 10:30:18 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 128APRiV029444; Mon, 8 Mar 2021 10:30:17 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2177.outbound.protection.outlook.com [104.47.57.177]) by aserp3020.oracle.com with ESMTP id 374kmwtge2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 08 Mar 2021 10:30:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jtRIE3VDpt6NEE1P5aZNJHDYbTP84aFUSql0CQOozAiSFtMOFXRWuPGonmii77e4oQlqXz3iGJ/NTbrqg/4XPn8nsDyvq/OXslVA+ta/DGZBDZLjcI1wMNx1rvgQsYsr3kYEMzu8IN5cq7Irf1Z7L4I1rt368zQKhFRBnfmINC/OTUfLRPbwv/c04kw455YQ3fX/5g9I5vlx2cIbKIxECDzHuiC+LOL4yxOYaXEO9ggPCOfKNs15m99f7ePEAI7HGaN9yWn/wEAklbKu6q5WPLDwuwQOhmUuunffvukwZP3yCCdCtT8PYLotnWQciZuwv5RYYoMSWnyR/AEk4QTwWA== 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=3ROAqPqZEcSIVJBROqMnY+jwC0PqpORgs3RWF822v4U=; b=e33ULBcK85n7D+JXGTo/Ap4EWeF0bj8KjUPT2hfeh1lLkQu2gIbCL7A1DoCm3NuHELG7pgFlbgWWNynpZ6oO7zLR4R94y90uliE7adBdNSnrnIxIky/r2tkv8lk4helgC6LmZeEWqt78YugM1nG/gaQV7DmosDx5WFvuiY2BzpScFKfGrSGZFij53gx871kEuhLeLz6X6l3FruqoP5WGHchfRp3h6ShBiBbwhsvt5RykMHNn8Me1EimUNovy6SUW4+tuBKZsUcsctaIrHPmWvsyuKU5jyTaDgS5+M0VWjBqWW8OY9Ry+gsQGhjg/cOEpoYJk2zJAbuq8Uiy5hTld4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3ROAqPqZEcSIVJBROqMnY+jwC0PqpORgs3RWF822v4U=; b=cWZ/Zt9DnJHNQpvUwlzSlv7hR60HjfK7KXErYoxzmC0b8UOf+XN68q4ey3nOAnBwOikpinIXx/MkPdoee8HbGBnGbDoUNRsXsEX58W4bzWPBSiXPVzChSPxZR5m4sA8zGJQW1JnA/p1gzu9a7Ip+1BoOTQVJdpHewjKhxjjvBUs= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=oracle.com; Received: from DM6PR10MB3148.namprd10.prod.outlook.com (2603:10b6:5:1a4::21) by DM6PR10MB3705.namprd10.prod.outlook.com (2603:10b6:5:155::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.26; Mon, 8 Mar 2021 10:30:15 +0000 Received: from DM6PR10MB3148.namprd10.prod.outlook.com ([fe80::f871:5965:2081:3934]) by DM6PR10MB3148.namprd10.prod.outlook.com ([fe80::f871:5965:2081:3934%5]) with mapi id 15.20.3890.038; Mon, 8 Mar 2021 10:30:15 +0000 From: David Edmondson To: qemu-devel@nongnu.org Subject: [PATCH v4 0/2] replace pflash DPRINTF with trace events, fix type Date: Mon, 8 Mar 2021 10:30:07 +0000 Message-Id: <20210308103009.3295532-1-david.edmondson@oracle.com> X-Mailer: git-send-email 2.30.0 X-Originating-IP: [2001:8b0:bb71:7140:64::1] X-ClientProxiedBy: LO4P123CA0269.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:194::22) To DM6PR10MB3148.namprd10.prod.outlook.com (2603:10b6:5:1a4::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from disaster-area.hh.sledj.net (2001:8b0:bb71:7140:64::1) by LO4P123CA0269.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:194::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Mon, 8 Mar 2021 10:30:14 +0000 Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id d47d1e62; Mon, 8 Mar 2021 10:30:09 +0000 (UTC) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8d0a52fe-c165-4678-d3a1-08d8e21d2962 X-MS-TrafficTypeDiagnostic: DM6PR10MB3705: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iCb1ivwTX8RmfYucHkIgUAncoFOeiWrVUvsfyvsQY8WqE1bjqwzbQ9cC8tY1G/1VfjR4/cK7KCk7rkhiqQ4hb1xv6GL9T+1dl8pI0Wh8Uh8nmXP+LwSfn5kJo7uKzA28sFOC1BgqauxnNrk9zabV7q3JyhAkirFrxR+nJVsVdll/y6sn4pLxaEegySbmhzcNRomQZJg06I+za/0TL02KRIe8+2/JXfm9YuTHFGp5c9rFvkeM7GyE47kdluPxBcx5lsHmnWi78RhfiWKlleFz68K0ujLkCfsTcKBLEZKjJ8OtkNHMe761sd08UOCsiFNcZIXnfAIsWdWC5ze01xVWO9be53a7NK67/fugE0Bn90iKzNbQSPuufKFgMa8VsC6iKegiwkfPI90hN0D/40TluHhOPpzRqtku6+1qFTqdwYuue3Crv/bA0af6Xil2k8WUXBMw9fuDUFFAKL0o/FVXDtS5trLQXaTmBkpkhFR6I7z6SLFl2zNWn2N411n1n819jrrgiQmaRPtGO0/7UAJMFg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR10MB3148.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(396003)(366004)(136003)(376002)(39860400002)(2616005)(1076003)(66556008)(4326008)(8676002)(66476007)(478600001)(66946007)(316002)(36756003)(44832011)(86362001)(5660300002)(186003)(107886003)(2906002)(6916009)(54906003)(52116002)(8936002)(83380400001)(4744005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?8KRf+In30p0E4aWzY4N/Sp8FoFcB4L?= =?utf-8?q?r16/qoX0EpcnKcO+kRUxndR71gc5RhSEVj8NfdCQjb9A9eUeN4BHWNx9wbICuVmL9?= =?utf-8?q?tniS+Lps58UXhJbReSeYVTvIitwXFA3RcKlW0MCx3CJDXYtXkV3dQOGRsHfzpmglo?= =?utf-8?q?39NidKAG8MU4+SadyljhnEEill7Iz4Nmqiu1oQMWfXX3BPXtE3ykVJFhJ9SxB5EP9?= =?utf-8?q?wwX3g5tGXT6kjhgmOBmKYpyf/5N2CftQlvKodkcpe7/ZJPQpSiP8oM2UQv0x0WWiC?= =?utf-8?q?1m+U//t6a16qiha5guR1y8Rh7YNkkpe7Er4GUmk8u+VA6kkWnni7ZwNJ3o+DYof06?= =?utf-8?q?BuzrshSd0mxc/Q02BN8RorGresabnElIQk8lHuyJTru3J0Xe0imXS5jBGXeZXYJz3?= =?utf-8?q?wW+XWSS/MXzm546rJlLcY0FmYGHwhY7blPxxknjg5WmU6CwDXzmPr0qJHzE84VqcN?= =?utf-8?q?n17D+/Qo3iDr3B1bnfilVXMnCIqA1rZBpLYgs+z0SJVhABH/vkT8Su5EXtQvTg+EI?= =?utf-8?q?B/roN15QxQYVLPgFrN1gh1NnKO2VK0jxI0JAEx9UaSoyter8B8I1qXSkeTAB6LQre?= =?utf-8?q?NNDKR1011TKesScR78WYJl2VTaVhBhGSQgF+YuJlBqjzsBfVIyNVqHjMlkyGCYBm5?= =?utf-8?q?IGsxoLWHQMjNQ8u+Na4RiCU8FKU9qNmgMBTV4kaaizAv5AncJ4kkbM8uvWMvUHXq5?= =?utf-8?q?n9/a5atdLY0KZXEPjP9G5Ufu2voZvsQU0LLqMf/aTNjFDJHuTm9XFcJQM0WuRuo9f?= =?utf-8?q?G6L7kDlFhk4+scrGcRHC+VK+kp3k6QopNYR0m8u93mFUTyMVeSO01tZMq1dEenday?= =?utf-8?q?Yo/JSg9BM9/5lyTTrSv1nXZbLxhlYVk5IQYWYNc4+CtOF6+RU1FhW55yq5wrMMnmm?= =?utf-8?q?k7PAciMYkiy/bVU2suPw6dV6nhdeWjYera7NeXuiKW8tf18vW4fLJmjbcvRhLqYw4?= =?utf-8?q?PpR6NBv9SypzcMmhGfVWoJuk/nW/MO4rAxoiWqkLAvODWQ52SyTEmCDMFdWcsi+6P?= =?utf-8?q?vfzO95sFvMcSQ0H+4M5tX5fsB1vdjIt1y8XLemFzB47UhgtLXT+rvSbeDqrNicDud?= =?utf-8?q?f7+FxNGGHilylWtk8OJr4PnaukXPKyxRSQ3m+Gxc/p6Qlnx2ZZExfBNyrnAeptg1L?= =?utf-8?q?bs2IW8MhssNsb22I2TOKXmcSQT4hMdJDopKeh5bDQq6Mfg0tBfKnrMzm6wCTaDO5L?= =?utf-8?q?4XHiPiehL2OqN/CHgVvJS5qxRl/E5VRRlzlvTz/mBxF9k8gNHQ8a6ZkKGg0bcdvxJ?= =?utf-8?q?GjqgvDUmyl5MzXHkyVKoY2LFwPjet2Sd0AGA=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d0a52fe-c165-4678-d3a1-08d8e21d2962 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB3148.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2021 10:30:15.1825 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MmQ/qLLwzPhOwpHZdSj1QMZS1EUskUbOQxfKoBNMt+WJaFuhqQu2LFlBXNftBRgtVeg9r9JEdaDQE+1k+MzogKcv5lmdXIy7wZIsH5yhdp8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB3705 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9916 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 malwarescore=0 spamscore=0 mlxlogscore=617 phishscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103080054 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9916 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=868 malwarescore=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103080054 Received-SPF: pass client-ip=156.151.31.86; envelope-from=david.edmondson@oracle.com; helo=userp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , David Edmondson , =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= , qemu-block@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Given that the "sub-region" approach to shrinking the flash mapping size on ARM isn't progressing (I'm looking at Philippe's mmap based approach instead), this pair of changes are the already reviewed changes from the original changeset. David Edmondson (2): hw/pflash_cfi*: Replace DPRINTF with trace events hw/pflash_cfi01: Correct the type of PFlashCFI01.ro hw/block/pflash_cfi01.c | 82 +++++++++++++++++------------------------ hw/block/pflash_cfi02.c | 75 +++++++++++++++---------------------- hw/block/trace-events | 39 +++++++++++++++----- 3 files changed, 93 insertions(+), 103 deletions(-)