Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp12353iog; Tue, 28 Jun 2022 15:10:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tWILW6rRukSKQhr+lZK5lHmGzzrKVKkkMIjU5YN1kT3uXUaZiqg7/BDdI11MmvxC5wFdbu X-Received: by 2002:a17:907:3f9d:b0:726:31d9:c872 with SMTP id hr29-20020a1709073f9d00b0072631d9c872mr273211ejc.524.1656454254657; Tue, 28 Jun 2022 15:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656454254; cv=none; d=google.com; s=arc-20160816; b=BQGOsyOebJ9UiqUjjMknKBCPXqrxmTgiJ01H8MBt39D7Y+s2NB2h18cUck6LRsGCw4 hpu0u0gJbIocJqGpcAJa6WQ+DRweEM8iWxE1Edm7u6/sor1qhDz8P9pN5cXxgglZtTZS BkpL8QII+28PuLiAgCSAsnRAe7RDb/zOOxHrAewTIwFKVR9aIA7FT7HdBOvqHs0Jwtrc z/y+ay7RGDBFb3gzbzuxE/6gBUrAff0gP2byaBaVVKq0nw34YvgRJK6fKbqxfP2JJJy4 tnYw65CYDSV9Syb71/qKwJmac8Tb1z6Jk39pPZ9xLkjIry7zTq3L5/rV18/L012AE1Pi zSLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1ZakejRQ+22YHg+2k15Aier3QBABOYdXxAORGb2Ezdo=; b=OZvvhNTsHgci17wLjBUZmcmk2dAbHKCFvcZft168lx3eX+rwL0VOvg+oOPQMQ7w2ro i33PWTMUC+avUS4OCOapcxJ96l5Ua3dkboQ4rvJS/ZrgswKPu2uaii/aR9/7z1NKS8qL S0ClOzOHT+55Dwni5uus6x9J+wzwTDHcacj3Z9dzCBIRoj/wE+8Zgv7fktQsgX8FqBNH W6501JkwCh6FOCwRe9AVH/AUKLHtnWfPEXTDkcX3itiXQqOOCLbt7QL63X+TZWzz0V3n loXyeFv2JjpuACfeo1uC8CeCIZkcf2gayLThlq2Rkajwjo8VDVGHveQ0EA5kcHFDygkB Cvuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=elEeeKUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a056402150800b0042daf1e65a2si15471807edw.251.2022.06.28.15.10.29; Tue, 28 Jun 2022 15:10:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=elEeeKUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbiF1Vu6 (ORCPT + 99 others); Tue, 28 Jun 2022 17:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbiF1Vu4 (ORCPT ); Tue, 28 Jun 2022 17:50:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64D812E686; Tue, 28 Jun 2022 14:50:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CE6D7618B3; Tue, 28 Jun 2022 21:50:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E3A5C341C8; Tue, 28 Jun 2022 21:50:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656453055; bh=Eulr4Y0cWb7qjc6CpxCm3Vct1+OoFSfv0gPahuMP8H0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=elEeeKUDea9hk5aQmAteuIyRdHZZsKhLl3Vgkrf0ebuHMVDyxzs1owwkAc5icxtXR Tv3y3Ypg5BZfSAA4fm/1du/h9YT9oUMVvzdwBxhJY45v0cynFE7MH/FGecsgnZV2dk iPm6ogOEDIT42r9PUlRQz9dQNjh6tOzSwvfw+orYrQP8DJdAcBTb8Txl9TLsSqkRI5 7J7GSf1511sS2KBwajo4lNLtrnzx6YNYJIcRb3aJarxomVr3XyXRVQbc5LQe6sATzH Szilv/6OGgYptkfbHHlymMEVoWlRUtOrH4DB1kh3spBftyplxnSoqxW2EfM72iufIW dnOIf5/XmvBRg== Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-3178acf2a92so130916397b3.6; Tue, 28 Jun 2022 14:50:55 -0700 (PDT) X-Gm-Message-State: AJIora8t+Tbp0ONZp1rsopAHnWHF4ZtgcARhu00sjUOo9OWfh5FHrdMN iOowDmIdqZf0/seXxsuCn+4f1ZlUFPeUG2TB790= X-Received: by 2002:a0d:df0f:0:b0:31b:e000:7942 with SMTP id i15-20020a0ddf0f000000b0031be0007942mr283034ywe.320.1656453054172; Tue, 28 Jun 2022 14:50:54 -0700 (PDT) MIME-Version: 1.0 References: <20220617125750.728590-1-arnd@kernel.org> <20220617125750.728590-4-arnd@kernel.org> <6ba86afe-bf9f-1aca-7af1-d0d348d75ffc@gmail.com> <9289fd82-285c-035f-5355-4d70ce4f87b0@gmail.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 28 Jun 2022 23:50:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/3] arch/*/: remove CONFIG_VIRT_TO_BUS To: Michael Schmitz Cc: Geert Uytterhoeven , scsi , Linux Kernel Mailing List , Arnd Bergmann , Jakub Kicinski , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Linux IOMMU , Khalid Aziz , "Maciej W . Rozycki" , Matt Wang , Miquel van Smoorenburg , Mark Salyzyn , linuxppc-dev , Linux-Arch , alpha , linux-m68k , Parisc List , Denis Efremov , Michael Ellerman , John Paul Adrian Glaubitz Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Tue, Jun 28, 2022 at 11:03 PM Michael Schmitz wrote: > On 28/06/22 19:03, Geert Uytterhoeven wrote: > >> The driver allocates bounce buffers using kmalloc if it hits an > >> unaligned data buffer - can such buffers still even happen these days? > > No idea. > Hmmm - I think I'll stick a WARN_ONCE() in there so we know whether this > code path is still being used. kmalloc() guarantees alignment to the next power-of-two size or KMALLOC_MIN_ALIGN, whichever is bigger. On m68k this means it is cacheline aligned. Arnd