Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1193236pxb; Fri, 13 Nov 2020 06:38:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHn8k4nUkos9l2H5pXELI9YS47ro39cdjm3WbYF4cwWB7AXS01XA9/nUpLHUzI1tYcqi8i X-Received: by 2002:a05:6402:3d9:: with SMTP id t25mr2789956edw.338.1605278291705; Fri, 13 Nov 2020 06:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605278291; cv=none; d=google.com; s=arc-20160816; b=NSDZ1GH+8MMQanvM78AidBRjPRhGmM/ttXSlKNtVx4VbR8NAQg8VLOXwSM15qf8qTX kJPABRKYGycekU/lbHEH0jxITI2Re3fQKazpJn6s8QnHuC9r1yyA9sCBk0oo8H6BKQGv NbtsBVQum6w+WYSLSayCgCnIM6qOHJxe7mAcxBx6qtkUllj0L15jsdlDO28f1EIQjD3s v0yG+C4BMu8v3Igt7peHU2BGhodnWGg0DaDbw6fe9zrq0YSkgjXAZEXlw5yPVzbk+wKa fupslWOqmtQxMqXuEXc8AApqctuc9fm+yyZzcjyC+zQQbwyIi8EDo1M09Z7pTkfwQFE0 OhFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=/7H7cJ5j1JFx9OGMmbYXMDayFBipc1Odzd7yUdm50eQ=; b=wAbIG1vWRr49Yn6LGkGyvJyoKo724mmFWm8/6MVBDjNl6XX7G5ob4mfMmMM4o4Xi7+ yw/jXvZSBLfjpePYXpZ7KjFA9DGcTRdsqeYZtIrN6mIfg7TM129eP7bEhAIcJBkfMoKU e8Lt6egoCZlHcuXn2w0l8D2a+hTaN+3nmA/ap0odwSXJQw3givAqWIs9VsEz+P+nwyM3 YhTmsmQwJKq8GQkqD5qiSJizPgNgfwfWBXxaZlNBWLHNoYchOgoCFf+S9pZsByjRlRs+ QKR8sDMgZgXjp5eJu5u6ALFhwC6NG1m1pSID7CT1ENn0YPXuwFe/h+snFvDuauUxg2kU BeAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PvtncT+D; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WrTh6JnT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si6370388edy.158.2020.11.13.06.37.49; Fri, 13 Nov 2020 06:38:11 -0800 (PST) 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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PvtncT+D; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WrTh6JnT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726558AbgKMOgJ (ORCPT + 99 others); Fri, 13 Nov 2020 09:36:09 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:53134 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726443AbgKMOgJ (ORCPT ); Fri, 13 Nov 2020 09:36:09 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605278168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/7H7cJ5j1JFx9OGMmbYXMDayFBipc1Odzd7yUdm50eQ=; b=PvtncT+DBe+snL/saZY+J1T9Q3NG/FTcri0yCZCHiRMzeRegVVIAuy5lwbugFDgCy3H1xs DN/R4SFpSCrlCdXtjWAPkGyLh4bDQ2hh5NdUs21MIGoe2Svy0ZPG/piECCNYM1Dc3MW9Si Ozzgg4cuzMedVodJa1AUg0OBqHEtUWBUByTscdSKS7+vuSUlFQ/u/yWWDRzYHI2+Jf98kb Tm20U4B32eyJfS2h13hFL7FCKrtYOitnUhXIwLS9jnY85WPUuhc4BDKjcVPwmxz51BClJ+ CMCzWuPiu0reZsavJEJQGX/FJ+IFU+VwhQK66Rm4FPzo9GgDqThUSJaJB493lg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605278168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/7H7cJ5j1JFx9OGMmbYXMDayFBipc1Odzd7yUdm50eQ=; b=WrTh6JnTuXCGlQiWJQu2QtVRhUeab7lUfU1+4W28/LT8gg2CX5O1n/e8USHAOcqpo04T3U 2Lz6Dj2wlYCb0HBw== To: Max Filippov Cc: "open list\:TENSILICA XTENSA PORT \(xtensa\)" , Chris Zankel , LKML Subject: Re: [PATCH] highmem: fix highmem for xtensa In-Reply-To: References: <20201113122328.22942-1-jcmvbkbc@gmail.com> <87zh3ll6hw.fsf@nanos.tec.linutronix.de> Date: Fri, 13 Nov 2020 15:36:07 +0100 Message-ID: <87sg9dl3xk.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Max, On Fri, Nov 13 2020 at 05:50, Max Filippov wrote: > On Fri, Nov 13, 2020 at 5:40 AM Thomas Gleixner wrote: >> On Fri, Nov 13 2020 at 04:23, Max Filippov wrote: >> > Fixmap on xtensa grows upwards, i.e. bigger fixmap entry index >> > corresponds to a higher virtual address. This was lost in highmem >> > generalization resulting in the following runtime warnings: >> >> Sorry for not noticing. >> >> > Fix it by adding __ARCH_HAS_POSITIVE_FIXMAP macro and implementing >> > vaddr_in_fixmap and fixmap_pte primitives differently depending on >> > whether it is defined or not. >> >> What's wrong with just doing the obvious and making the fixmap defines >> the other way round? > > It becomes really awkward when we get to support high memory with > aliasing data cache: we must think about the actual virtual addresses > assigned to pages and it feels much simpler when it's done this way. Feeling are not really a technical argument. Is there any functional difference which matters? Thanks, tglx