From owner-freebsd-arm@freebsd.org Sat Nov 16 04:19:39 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 460C31B954E for ; Sat, 16 Nov 2019 04:19:39 +0000 (UTC) (envelope-from alc@rice.edu) Received: from mx0b-0010f301.pphosted.com (mx0b-0010f301.pphosted.com [148.163.153.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47FMS94JNRz44Js for ; Sat, 16 Nov 2019 04:19:37 +0000 (UTC) (envelope-from alc@rice.edu) Received: from pps.filterd (m0102859.ppops.net [127.0.0.1]) by mx0b-0010f301.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xAG4FJPT014852; Fri, 15 Nov 2019 22:19:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rice.edu; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type; s=ricemail; bh=wtvlAeUMpP+zYRFHxE9maXhJXO7fEcRab1T+dt1FAEs=; b=IabAkf18JUaNF4YJsnafpPam4yR2QL7uJQX6G0gk4nKIHE2kT627qqAEDvZxQnGMBxVA LOG8URGUK7lvsgaPGW2dow5nm6FgK1L8yuUOynoZG2Oc52RcAst8KbrTggWKBkFtpKq9 Um0zKmhSAyRFIhUSX+X1BtSk3GD6uUNZ73Mks15PvkKZnIoaW02SjJ2EavMgNhYt6awM 6awuNIwH2L0XPzfGy/2WJgoxwIlqKnIYeJEkgOlEPqO445OHaHHVqEmhYFLbQyRUFbJ2 iGmy/2ZzrB60omrkUocdwN5o4tQ4t7rqjE7+lXJawJVS/KkmrPapznOeb+wi6DBAOXvS 8w== Received: from mh3.mail.rice.edu (mh3.mail.rice.edu [128.42.199.10]) by mx0b-0010f301.pphosted.com with ESMTP id 2wa9wgr01r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Nov 2019 22:19:35 -0600 Received-X: from mh3.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh3.mail.rice.edu (Postfix) with ESMTP id 8C4F740556; Fri, 15 Nov 2019 22:19:34 -0600 (CST) Received-X: from mh3.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh3.mail.rice.edu (Postfix) with ESMTP id 8B39E40553; Fri, 15 Nov 2019 22:19:34 -0600 (CST) X-Virus-Scanned: by amavis-2.7.0 at mh3.mail.rice.edu, auth channel Received-X: from mh3.mail.rice.edu ([127.0.0.1]) by mh3.mail.rice.edu (mh3.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id iR87NmKDMX8U; Fri, 15 Nov 2019 22:19:34 -0600 (CST) Received: from 108-254-203-201.lightspeed.hstntx.sbcglobal.net (108-254-203-201.lightspeed.hstntx.sbcglobal.net [108.254.203.201]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: alc) by mh3.mail.rice.edu (Postfix) with ESMTPSA id 4546940552; Fri, 15 Nov 2019 22:19:34 -0600 (CST) Subject: Re: "Invalid ASID" Patch To: bob prohaska Cc: freebsd-arm@freebsd.org References: <3ef09b7e-f7cf-bb10-1a14-a01b0c86b486@rice.edu> <20191116035936.GA80744@www.zefox.net> From: Alan Cox Message-ID: <5b390364-3a33-cc8e-ff88-a8b415510120@rice.edu> Date: Fri, 15 Nov 2019 22:19:33 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191116035936.GA80744@www.zefox.net> Content-Type: multipart/mixed; boundary="------------78A81C0804880BD9F12E9B3F" Content-Language: en-US X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-15_08:2019-11-15,2019-11-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 spamscore=0 clxscore=1011 impostorscore=0 mlxlogscore=652 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911160034 X-Rspamd-Queue-Id: 47FMS94JNRz44Js X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rice.edu header.s=ricemail header.b=IabAkf18; dmarc=pass (policy=none) header.from=rice.edu; spf=pass (mx1.freebsd.org: domain of alc@rice.edu designates 148.163.153.244 as permitted sender) smtp.mailfrom=alc@rice.edu X-Spamd-Result: default: False [-8.36 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[rice.edu:s=ricemail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:a32.spf.rice.edu]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; DWL_DNSWL_MED(-2.00)[rice.edu.dwl.dnswl.org : 127.0.11.2]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[rice.edu:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[rice.edu,none]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[244.153.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:22843, ipnet:148.163.152.0/22, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-3.26)[ip: (-9.83), ipnet: 148.163.152.0/22(-4.67), asn: 22843(-1.75), country: US(-0.05)] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Nov 2019 04:19:39 -0000 This is a multi-part message in MIME format. --------------78A81C0804880BD9F12E9B3F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 11/15/19 9:59 PM, bob prohaska wrote: > On Fri, Nov 15, 2019 at 12:53:46PM -0600, Alan Cox wrote: >> A patch for the recent "Invalid ASID" assertion failure can be found at >> https://reviews.freebsd.org/D22388 >> > The website reports > "This revision is now accepted and ready to land". > > Could someone please translate? > > Thanks for reading, > > bob prohaska > That just means that the patch has received a positive review. I've attached the patch to this email.  Apply it to your source tree, recompile and reinstall a new kernel, and then retry your "buildworld". --------------78A81C0804880BD9F12E9B3F Content-Type: text/x-patch; charset=UTF-8; name="arm64_pmap_remove_all.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="arm64_pmap_remove_all.patch" Index: arm64/arm64/pmap.c =================================================================== --- arm64/arm64/pmap.c (revision 354585) +++ arm64/arm64/pmap.c (working copy) @@ -2879,11 +2879,12 @@ retry: pte = pmap_l2_to_l3(pde, pv->pv_va); tpte = pmap_load_clear(pte); - pmap_invalidate_page(pmap, pv->pv_va); if (tpte & ATTR_SW_WIRED) pmap->pm_stats.wired_count--; - if ((tpte & ATTR_AF) != 0) + if ((tpte & ATTR_AF) != 0) { + pmap_invalidate_page(pmap, pv->pv_va); vm_page_aflag_set(m, PGA_REFERENCED); + } /* * Update the vm_page_t clean and reference bits. --------------78A81C0804880BD9F12E9B3F--