From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:2d51:0:0:0:0:0 with SMTP id t17csp2604820lft; Mon, 27 Jun 2022 11:53:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3VYIpCEhG1LvCZpTfjYudmdF3nEl3S8iOqRhiTpDuYPswTiBRWc3Hew0/RpREYy77ChfW X-Received: by 2002:a05:622a:205:b0:318:7105:e925 with SMTP id b5-20020a05622a020500b003187105e925mr9033280qtx.458.1656356011351; Mon, 27 Jun 2022 11:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656356011; cv=none; d=google.com; s=arc-20160816; b=TdgF8kNey5+4e4mrJJAH1N0cKqf67LTHUMgDhXJqL80YqugWBDERIcU/a1toe96Wx8 hNKudh5QcTZFz1Kt2ErsHwDGgGTvm+rbhl1MDgZ5f3+CTRKdm1mmbfZPn0I6J6d5bid5 7ArWzn8l+SQDY8IlRSkFwXk1iPlAr2x2Pd65HmDDsOuGQkVCGOjenW5fLscZAk7V8gUZ 984vDGKGy9cTJK4zw4ZmmhUhOb6d75PJO238r2w9eyi7dh3evL96/FMAqD1hmz0P1+pf E6hVaUemMcyU4/T05JXbMaEl/mGbBCKNqX35dmzwOPtTqzl7Ccdya/ud0Xs1B9OyD/DG SEiA== 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=VHv6YEyj62SAF8L5IukS4HCN6T5BiSHsEC7rHqnLzwY=; b=PrrpCy2yb5sDLuI+lJtcDeZjLQyAVVXfX7s2oY95EHK1U1F9pyc0zT4K4NWL+LkzWO d/XGs38ChjfQgRuSWulmmFgrUEjuHWrvdBX8l79wgauBzFYJZEaDqL5MgSO0xh2bsrM7 M2TUFbfrQwg0tJfLDswI/FP01BHnkdQzCFinjNdoJT4M1KN8UibkQfRQC/wdsXTmaap+ lHY2ofaLsFAsYNmbqZRviThyDlypXv2950V+UzQsUGN7byNbtwXnPCwHrR1t222CrdAM JYYthviJ37daP469aHOhycY/65+EhApIiSsb5ME5k54lZVsm78xoUnU1lqhnImVfXZSY w6gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=kraT3qit; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b10-20020ac85bca000000b0030511f5ec60si6242655qtb.373.2022.06.27.11.53.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jun 2022 11:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=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=@fb.com header.s=facebook header.b=kraT3qit; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Received: from localhost ([::1]:57620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5trW-0005Nd-SR for alex.bennee@linaro.org; Mon, 27 Jun 2022 14:53:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5tqz-0005N2-3P; Mon, 27 Jun 2022 14:52:57 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:31530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5tqw-000864-L6; Mon, 27 Jun 2022 14:52:56 -0400 Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25RGLFUl017428; Mon, 27 Jun 2022 11:52:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=facebook; bh=VHv6YEyj62SAF8L5IukS4HCN6T5BiSHsEC7rHqnLzwY=; b=kraT3qitTf+RDrPHFOWoFBlldzrQzjkIlF6ImtsH+bz1jJwYyevN4XyUJGD5CBgF1fUU V9sG2LddO+UXeK7N0ofdQVlrE5cgjNMr4LtaUTjafr4zQKQ8YDL6WAGFxcQSTlBiQdql H5oUeLy0KxB6IMVBS3Z/wOjSrwDDWIh2Zls= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3gyg0a9arw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 27 Jun 2022 11:52:39 -0700 Received: from localhost (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:83::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Mon, 27 Jun 2022 11:52:38 -0700 From: Iris Chen To: CC: , , , , , , , , , , , , , , , , Subject: [PATCH 0/2] Add Block Protect (BP) and Top Bottom (TB) bits for write protect Date: Mon, 27 Jun 2022 11:52:32 -0700 Message-ID: <20220627185234.1911337-1-irischenlj@fb.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [2620:10d:c0a8:1b::d] X-Proofpoint-GUID: HlRQM7ArlUdq3MIfP-yyU6K2MdJBUuwq X-Proofpoint-ORIG-GUID: HlRQM7ArlUdq3MIfP-yyU6K2MdJBUuwq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-06-27_06,2022-06-24_01,2022-06-22_01 Received-SPF: pass client-ip=67.231.153.30; envelope-from=prvs=7177cd4fe2=irischenlj@fb.com; helo=mx0b-00082601.pphosted.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: 4UTVbG03tkgW Hey everyone, Adding the 3 block protection bits and top bottom bits which configure which parts of the flash are writable and read-only. These patches are based on previous patches I just submitted: hw: m25p80: fixing individual test failure when tests are running in isolation hw: m25p80: add WP# pin and SRWD bit for write protection hw: m25p80: add tests for write protect (WP# and SRWD bit) The tests that were added iterates through every different memory protection case so it takes a little longer to run. Let me know what you think about that and if that's okay or not. Thanks, Iris Iris Chen (2): hw: m25p80: Add Block Protect and Top Bottom bits for write protect hw: m25p80: add tests for BP and TB bit write protect hw/block/m25p80.c | 74 +++++++++++++++++++---- tests/qtest/aspeed_smc-test.c | 111 ++++++++++++++++++++++++++++++++++ 2 files changed, 173 insertions(+), 12 deletions(-) -- 2.30.2