Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp272220rwe; Wed, 24 Aug 2022 00:08:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR4yv65Tj/+GNz5B+ubBQWshojHOHDL1/Ledcevqbbdp6AwK9Ak3AIeCBl7/ritV9r0E0E4m X-Received: by 2002:a17:907:2bf7:b0:730:996d:5e8d with SMTP id gv55-20020a1709072bf700b00730996d5e8dmr2094188ejc.382.1661324917048; Wed, 24 Aug 2022 00:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661324917; cv=none; d=google.com; s=arc-20160816; b=c8FL5xRZYKsc0PVihBQxNt93AAxE4lCXTJH3IxRjwczOAcv8tXPV88ycijMUgg6bM0 BApAQJOYNeWqsNcXiVWLoSExJVR2o8hoH8SLRLOQpFQ74972RyFIyla0/ABUP5YoQW/Q VxcEfy/oc+b7vLxR96rYdTWLY8WuPYNXD9gyQ4j3qEQZ8+WI/SAOu1otq6/U7psomkfH ahSur/yzU3wZVgQWGol5AcgS28Pv10ch6t43p87mkg4+H/alVmE4dhFNw4ykxA3EO0zu D2OmylAiX2rffjRgEz1/ukKisWwnWCyoekXRBidkAVR5eUeDBeioTteXWUuVYZ11nuMB NeSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HzgwvtmRXGK/aZRjhPFv4e/lxWt/ULdUD9x8fI/RP7s=; b=riI/1Xglm4KFOTdSSgLiJXNPD5V+8rPeUDWeVOlto6Qs3RrA8uKAjtAifgG/PPsnqo /j26dYswWkVmg6iBqu3PHNsRK5GZbsNIBChW+yreEdTaj2SEpbwIFpbGBXGeqR4Fmniy XW9Nkbrlq6jR5OTzdnjEBiQHXmITx0GgRmK/bQcHwXva1flaGBC8MRwaSYXHDIT+anPt OwGmL5ZUzNgL59HhZolDsnYyEfR4YheroDN4sqn52+uyr3uhoYNCoB9nZSxG7Q7sxm1J sOYctVIZ1Aj8k6RIs+qp08aefD/EJCID6s1m+IRTIckjSASORZhh/mgjwU8ySal7KddO GlJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TYMW9Pgs; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr17-20020a170907721100b0073d95653bccsi1453037ejc.641.2022.08.24.00.08.11; Wed, 24 Aug 2022 00:08:37 -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=@linuxfoundation.org header.s=korg header.b=TYMW9Pgs; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233341AbiHXG4L (ORCPT + 99 others); Wed, 24 Aug 2022 02:56:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235240AbiHXG4I (ORCPT ); Wed, 24 Aug 2022 02:56:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06E6285AA1; Tue, 23 Aug 2022 23:56:07 -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 ams.source.kernel.org (Postfix) with ESMTPS id ABD7FB82371; Wed, 24 Aug 2022 06:56:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02A68C433D6; Wed, 24 Aug 2022 06:56:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661324165; bh=1jtX6ORxPIkayI4jhfqIZ8SoaBPm8JNXwJB+iwVWy7E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TYMW9PgshZgadVjDrUNF/ugumlll+uux2YBXEIh2cIdnM7+jadZraebMQwHPcJuHK Atvjs8bLhf6RQVxZkWuLPLni6KsUwiw5Kd9l5dFgaW0BYcVeYBP68TyIuGE4gGM2uy tTnycXxhA9OUlptt4Yr7BH2F4gGNuw/du04aQ100= Date: Wed, 24 Aug 2022 08:56:02 +0200 From: Greg Kroah-Hartman To: Dongli Zhang Cc: Christoph Hellwig , Robin Murphy , Yu Zhao , stable@vger.kernel.org, Sasha Levin , linux-kernel@vger.kernel.org, iommu@lists.linux.dev Subject: Re: [PATCH 5.19 319/365] swiotlb: panic if nslabs is too small Message-ID: References: <20220823080118.128342613@linuxfoundation.org> <20220823080131.532813281@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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,URIBL_BLOCKED autolearn=ham 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, Aug 23, 2022 at 10:25:27AM -0700, Dongli Zhang wrote: > Adding Robin, Yu and swiotlb list. > > Hi Greg, > > There is an on-going discussion whether to revert this patch, because it breaks > a corner case in MIPS when many kernel CONFIGs are not enabled (related to PCI > and device). As a result, MIPS pre-allocates only PAGE_SIZE buffer as swiotlb. > > https://lore.kernel.org/all/20220820012031.1285979-1-yuzhao@google.com/ > > However, the core idea of the patch is to panic on purpose if the swiotlb is > configured with <1MB memory, in order to sync with the remap failure handler in > swiotlb_init_remap(). Ok, I've dropped it from the 5.19 queue now. If you want it added to a future kernel release, just resend it. thanks, greg k-h