Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3155551pxf; Sun, 28 Mar 2021 14:08:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxnhguQaSo7c/QFMrzfeQZi2nkOCaHVEUejnPlbinKjha44sTvTJG64uiNqXa6DB7A69W3 X-Received: by 2002:a17:906:2818:: with SMTP id r24mr25603804ejc.502.1616965706095; Sun, 28 Mar 2021 14:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616965706; cv=none; d=google.com; s=arc-20160816; b=gfYWu5rDxHIoVBPu7qhG9gLfjXhbVeq891/nfJwLyUV+jblV9HDt0neShzU+vXTTwD n+Yjlgg08t5tatfpyh1Jejitu8hDohZv5jiW82K7JvRDwkL7xnB8v/pla1yLisB5lf9n HyKo3ogcL9CETQsz+oRJIkgvg90LviYaMqlgFI3q7bbrNjFwb3AzhMSS7XKdFcpB23Ih 2+rmoyBGlwRDmZl0+dqUswVRytHug/9lId9Q+6NvVIUqTKphDWk3hDbUA353mZUj6AFI tHCdiHJe2W153iipOAazdO4/xg/dvAImvnw7EYSy8aIv3WOGUchO8dsJ8i5bMqdihCY5 x3Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=XcfL75TvFJYKntt76xjq+GJaWKTbL5D6YKjwjVvU7do=; b=Yc4OHLbX2/fAZk7j94zwWjCUS4HzryR2GiqKbzgtAVpXxEwwk4GO/+fmz071UjwvIS z2nCEZK+6s8jQbdlp4NPT2Pg5mgDII6jz7t1uCFLcq1Nmvpi/WVQKCDpimPwl+6hZIwd 2H+txWhJYzOBoGQwd5r7+2ZKqlaNKzrsDF3G++oBGFvMLYzHjlo9Oxo8Ijn3/5FFfWyV uMbNUnYaeyyGEMmD0amirHtp2iS5RWoh9cOeLq5KjPTV3W/jtnS285c2BmHrv9rspSnL 1AhlxdkXMFnQ3uHF3eeOvA3+QcSXXZQHF2AY1uqBszQzi+iGzEsZOprpEldvcRAC0HTz nSXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si1468112ejy.742.2021.03.28.14.08.03; Sun, 28 Mar 2021 14:08:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231479AbhC1VGl (ORCPT + 99 others); Sun, 28 Mar 2021 17:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231446AbhC1VGL (ORCPT ); Sun, 28 Mar 2021 17:06:11 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0650AC061756; Sun, 28 Mar 2021 14:06:10 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id A295D92009C; Sun, 28 Mar 2021 23:06:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 9B44B92009B; Sun, 28 Mar 2021 23:06:08 +0200 (CEST) Date: Sun, 28 Mar 2021 23:06:08 +0200 (CEST) From: "Maciej W. Rozycki" To: Tiezhu Yang cc: Thomas Bogendoerfer , linux-mips@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Christoph Hellwig Subject: Re: [PATCH v2] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again In-Reply-To: <38cf6f7c-28dd-20a0-8193-776fa7bdb83a@loongson.cn> Message-ID: References: <1616034557-5844-1-git-send-email-yangtiezhu@loongson.cn> <20210325101712.GA6893@alpha.franken.de> <38cf6f7c-28dd-20a0-8193-776fa7bdb83a@loongson.cn> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 Mar 2021, Tiezhu Yang wrote: > > > I wonder whether MIPS EVA will generate overlapping address ranges? > > they can overlap in EVA mode. > > > > > If yes, it is better to make ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE depend > > > on !EVA on MIPS. > > Could please add the change ? > > OK, thank you, I will do it soon. For the record this is clearly described and accompanied with a drawing [1][2] in the architecture specification. I do encourage you and anyone serious about contributing to the MIPS/Linux project to make yourselves familiar with the architecture beyond the area of your immediate interest so as to offload the maintainers who are often overloaded and sometimes do their work in their precious free time. There are so many contributors and so few maintainers, so please help everyone and spread the work. Also please pay attention to quality change descriptions. It's your task to convince the maintainer your work is worth including, and in your best interest to make the decision easy to make for the maintainer. Think in terms of an exam at the university and what you would do to persuade your professor to give you a good score. This is what the change description is for, beyond the quality of the change itself of course. This general rule of course applies to any community-maintained projects and not only MIPS/Linux. References: [1] "MIPS Architecture For Programmers, Vol. III: MIPS32/microMIPS32 Privileged Resource Architecture", Document Number: MD00090, Revision 5.05, November 14, 2014, Figure 4.5 "EVA addressability", p. 51, [2] "MIPS Architecture For Programmers, Volume III: The MIPS64 and microMIPS64 Privileged Resource Architecture", Document Number: MD00091, Revision 5.04, January 15, 2014, Figure 4.5 "EVA addressability", p. 58, Maciej