Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp326283rdb; Thu, 5 Oct 2023 07:10:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJk2okuW209y28CyKnCTIynGhh61scI0aQOnUyeKIx/Zb0kyp9g2WBImzOwTGbBkAtaCmR X-Received: by 2002:a17:903:4284:b0:1ab:11c8:777a with SMTP id ju4-20020a170903428400b001ab11c8777amr5389410plb.13.1696514999817; Thu, 05 Oct 2023 07:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696514999; cv=none; d=google.com; s=arc-20160816; b=dKgFQGqFdDUwWr1jAp16j1QzRgA3FJ5z58+UtYMhquVSvLMLYHi2pcJPNeHRYsu8XX t9q62Fm03LN5rSvUw31dDjqwLyDpY3UkFsi0MDnCiyR0rr3Ajdi2iAWZmapd+3CDTB48 VGsn0Oh5xh9vKHgaRCWL3BsA2340ecEqKTgJWA5N4Wr9G4/MShvmGBVe8wIvXrEIGjNd bTEXYWPAqVK4CQ6IWSaDbNozwiv7+MS1D4wdSlrly5icjV667H0qrgxvmhbVtDwMzlFN yWObetg2SFGqVB4XA31sc5XiCLzjGCoykYRhyG+U9Yu6XZ/O6GxbUCi2GoEAPFejCS6H t4ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=dXjFlAuHAems2ZRueJh1tAruSX1O5y3qK98MZJr3LFw=; fh=QHdxI2MS3Z2srWNihtGedK1euuRcnLKTg0NqHMVeACs=; b=jLxl1BRH/adUgNHca5daZaQujsaOYGty9+MrWtDTFnC1SP8Fv4lb/0bLva+oWIkc8Z IMZrz0gFh4u08PUD3aS1kYrG+y9YOQXz0J0XopqrJaE1GOgHzjLxQIoiNz4Iepo5GXep yCFjrKtLCuDMJ/Z7EhQBs+LillJKtT0OAtmS51JYSQOKtbKOxZRo6ARRf21tBQi9kuV6 im6P1NtsPtPhOcOhfImQxkZZXx9LhJ9rY+mzK0WAJR7Hng+8qc+5DZelkXeq3IQi1JVN oDHB8qgIlYntqs1XYYYyRs8xRVABJwjLlVO47o6osbGeLG+KAJs+vHcppYcrQEQRfIrE 62mQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id t9-20020a170902bc4900b001c44c0f8d96si1542060plz.251.2023.10.05.07.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:09:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9CB7582A8563; Thu, 5 Oct 2023 07:09:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231652AbjJEOJr convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Oct 2023 10:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbjJEOHd (ORCPT ); Thu, 5 Oct 2023 10:07:33 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9320126A70; Thu, 5 Oct 2023 05:57:53 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-59f57ad6126so10027747b3.3; Thu, 05 Oct 2023 05:57:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696510669; x=1697115469; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HADAOv2Ff88FzB1D4GtvfGj4LE7j/q0n3R8h677Tcd0=; b=NpQ5xhDDIFfJgs+bDweLL9EefUgAeX/G0dx4D4gXj2gAzG2dnHDBhbcAqi0hC1S3Cw +RWZIkl/64sE4zu5GAhbhWOWydnHkyu8lph46xfGDbIz4rO+TkUCwVh0vkqnI3mUtmPX 5K4CvyWp9FnD/ryx5XwpiCMmTA3yOa3t8fxHRoB4qn5ZuBtlRM/wcYV8xA1EQz4Prfjn 2rrIfSEbr/Gy3KwJuVss1gQZo8HR1WJXti5844fwmoCRERre9AWhUrO0mbNZWsYOLFId RjUihRvZnlFO+Nsmhjs4Vmi+FQ08gmr33r+ckwHBjXg/j/lU5WtKe64/86mVXMiApd4Y FGjQ== X-Gm-Message-State: AOJu0Yx13snWrZlFnKBkqBcYD7lj6yTStdbPBhEy5Vfftiwtf4VEzjLW 3yrOUhBXd7LZdeYxuxTmzCGRiO+eVD8N4Q== X-Received: by 2002:a0d:ca02:0:b0:589:a4c6:a4ed with SMTP id m2-20020a0dca02000000b00589a4c6a4edmr5299641ywd.3.1696510669479; Thu, 05 Oct 2023 05:57:49 -0700 (PDT) Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com. [209.85.128.174]) by smtp.gmail.com with ESMTPSA id g68-20020a0df647000000b0059b2be24f88sm480277ywf.143.2023.10.05.05.57.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Oct 2023 05:57:49 -0700 (PDT) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-59f4db9e11eso10293417b3.0; Thu, 05 Oct 2023 05:57:49 -0700 (PDT) X-Received: by 2002:a81:d513:0:b0:59a:d42c:5d50 with SMTP id i19-20020a81d513000000b0059ad42c5d50mr5391255ywj.52.1696510668676; Thu, 05 Oct 2023 05:57:48 -0700 (PDT) MIME-Version: 1.0 References: <20231004150856.2540-1-jszhang@kernel.org> In-Reply-To: <20231004150856.2540-1-jszhang@kernel.org> From: Geert Uytterhoeven Date: Thu, 5 Oct 2023 14:57:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] soc: renesas: make ARCH_R9A07G043 (riscv version) depend on NONPORTABLE To: Jisheng Zhang Cc: Magnus Damm , Paul Walmsley , Palmer Dabbelt , Albert Ou , Lad Prabhakar , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Robin Murphy , Christoph Hellwig , Drew Fustini Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:09:58 -0700 (PDT) On Wed, Oct 4, 2023 at 5:21 PM Jisheng Zhang wrote: > Drew found "CONFIG_DMA_GLOBAL_POOL=y causes ADMA buffer alloc to fail" > the log looks like: > [ 3.741083] mmc0: Unable to allocate ADMA buffers - falling back to standard DMA > > The logic is: generic riscv defconfig selects ARCH_RENESAS then > ARCH_R9A07G043 which selects DMA_GLOBAL_POOL, which assumes all > non-dma-coherent riscv platforms have a dma global pool, this assumption > seems not correct. And I believe DMA_GLOBAL_POOL should not be > selected by ARCH_SOCFAMILIY, instead, only ARCH under some specific > conditions can select it globaly, for example NOMMU ARM and so on, > because it's designed for special cases such as "nommu cases where > non-cacheable memory lives in a fixed place in the physical address > map" as pointed out by Robin. > > Fix the issue by making ARCH_R9A07G043 (riscv version) depend on > NONPORTABLE, thus generic defconfig won't select ARCH_R9A07G043 by > default. And even for random config case, there will be less debug > effort once we see NONPORTABLE is enabled. > > Reported-by: Drew Fustini > Closes: https://lore.kernel.org/linux-riscv/ZRuamJuShOnvP1pr@x1/ > Fixes: 484861e09f3e ("soc: renesas: Kconfig: Select the required configs for RZ/Five SoC") > Signed-off-by: Jisheng Zhang Reviewed-by: Geert Uytterhoeven I guess this is the right thing to do until a better solution is found. I.e. will queue in renesas-fixes for v6.6. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds