public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Jiri Slaby" <jirislaby@kernel.org>,
	linux-serial@vger.kernel.org,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	"qianfan Zhao" <qianfanguijin@163.com>,
	"Adriana Nicolae" <adriana@arista.com>,
	"Tim Kryger" <tim.kryger@linaro.org>,
	"Matt Porter" <matt.porter@linaro.org>,
	"Heikki Krogerus" <heikki.krogerus@linux.intel.com>,
	"Markus Mayer" <markus.mayer@linaro.org>,
	"Jamie Iles" <jamie@jamieiles.com>,
	linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, "Bandal,
	Shankar" <shankar.bandal@intel.com>,
	"Murthy, Shanth" <shanth.murthy@intel.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH v3 7/7] serial: 8250_dw: Ensure BUSY is deasserted
Date: Sat, 31 Jan 2026 04:59:09 +0800	[thread overview]
Message-ID: <202601310404.Rdq0kVXE-lkp@intel.com> (raw)
In-Reply-To: <20260130132857.13124-8-ilpo.jarvinen@linux.intel.com>

Hi Ilpo,

kernel test robot noticed the following build errors:

[auto build test ERROR on 8f0b4cce4481fb22653697cced8d0d04027cb1e8]

url:    https://github.com/intel-lab-lkp/linux/commits/Ilpo-J-rvinen/serial-8250-Protect-LCR-write-in-shutdown/20260130-213314
base:   8f0b4cce4481fb22653697cced8d0d04027cb1e8
patch link:    https://lore.kernel.org/r/20260130132857.13124-8-ilpo.jarvinen%40linux.intel.com
patch subject: [PATCH v3 7/7] serial: 8250_dw: Ensure BUSY is deasserted
config: parisc-randconfig-001-20260131 (https://download.01.org/0day-ci/archive/20260131/202601310404.Rdq0kVXE-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260131/202601310404.Rdq0kVXE-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601310404.Rdq0kVXE-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/tty/serial/8250/8250_dw.c: In function 'dw8250_check_lcr':
>> drivers/tty/serial/8250/8250_dw.c:267:1: error: label at end of compound statement
    write_err:
    ^~~~~~~~~


vim +267 drivers/tty/serial/8250/8250_dw.c

   234	
   235	/*
   236	 * This function is being called as part of the uart_port::serial_out()
   237	 * routine. Hence, special care must be taken when serial_port_out() or
   238	 * serial_out() against the modified registers here, i.e. LCR (d->in_idle is
   239	 * used to break recursion loop).
   240	 */
   241	static void dw8250_check_lcr(struct uart_port *p, unsigned int offset, u32 value)
   242	{
   243		struct dw8250_data *d = to_dw8250_data(p->private_data);
   244		u32 lcr;
   245		int ret;
   246	
   247		if (offset != UART_LCR || d->uart_16550_compatible)
   248			return;
   249	
   250		lcr = serial_port_in(p, UART_LCR);
   251	
   252		/* Make sure LCR write wasn't ignored */
   253		if ((value & ~UART_LCR_SPAR) == (lcr & ~UART_LCR_SPAR))
   254			return;
   255	
   256		if (d->in_idle)
   257			goto write_err;
   258	
   259		ret = dw8250_idle_enter(p);
   260		if (ret < 0)
   261			goto write_err;
   262	
   263		serial_port_out(p, UART_LCR, value);
   264		dw8250_idle_exit(p);
   265		return;
   266	
 > 267	write_err:
   268		/*
   269		 * FIXME: this deadlocks if port->lock is already held
   270		 * dev_err(p->dev, "Couldn't set LCR to %d\n", value);
   271		 */
   272	}
   273	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      reply	other threads:[~2026-01-30 20:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-30 13:28 [PATCH v3 0/7] 8250 DW UART fixes when under constant Rx pressure Ilpo Järvinen
2026-01-30 13:28 ` [PATCH v3 1/7] serial: 8250: Protect LCR write in shutdown Ilpo Järvinen
2026-01-30 13:28 ` [PATCH v3 2/7] serial: 8250_dw: Avoid unnecessary LCR writes Ilpo Järvinen
2026-01-30 13:28 ` [PATCH v3 3/7] serial: 8250: Add serial8250_handle_irq_locked() Ilpo Järvinen
2026-01-30 13:28 ` [PATCH v3 4/7] serial: 8250_dw: Rework dw8250_handle_irq() locking and IIR handling Ilpo Järvinen
2026-01-30 13:28 ` [PATCH v3 5/7] serial: 8250_dw: Rework IIR_NO_INT handling to stop interrupt storm Ilpo Järvinen
2026-01-30 13:28 ` [PATCH v3 6/7] serial: 8250: Add late synchronize_irq() to shutdown to handle DW UART BUSY Ilpo Järvinen
2026-01-30 13:28 ` [PATCH v3 7/7] serial: 8250_dw: Ensure BUSY is deasserted Ilpo Järvinen
2026-01-30 20:59   ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202601310404.Rdq0kVXE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=adriana@arista.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jamie@jamieiles.com \
    --cc=jirislaby@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=markus.mayer@linaro.org \
    --cc=matt.porter@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=qianfanguijin@163.com \
    --cc=shankar.bandal@intel.com \
    --cc=shanth.murthy@intel.com \
    --cc=stable@vger.kernel.org \
    --cc=tim.kryger@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox